javascript date and time object
The
Date object is useful when you want to display a date or use a
timestamp in some sort of calculation. In Java, you can either make a
Date object by supplying the date of your choice, or you can let
JavaScript create a Date object based on your visitor's system clock. It
is usually best to let JavaScript simply use the system clock.