Specifications

// time flies..
var date2 = new Date();
var timedifference = date2.getTime() - date1.getTime();
Static Date Function
This is a static function that parses a string, dateString, which
represents a particular date and time. It returns the number of
parse( dateString :
String ) : Number
milliseconds since midnight on the 1st January 1970. The string must
be in the ISO 8601 extended format: YYYY-MM-DD or with time
YYYY-MM-DDTHH:MM:SS.
var d = new Date( Date.parse( "1976-01-25T22:30:00" ) );
d = Date.parse( "1976-01-25T22:30:00" );
Date Construction
Date( )
Date( milliseconds : Number )
Dates can be constructed with no arguments, in
which case the value is the date and time at the
Date( year : Number, month : Number,
day : Number, optHour : Number,
optMinutes : Number, optSeconds :
Number, optMilliseconds : Number )
moment of construction using local time. A single
integer argument is taken as the number of
milliseconds since midnight on the 1st January 1970.
var today = new Date();
var d = new Date( 1234567 );
var date = new Date( 1994, 4, 21 );
var moment = new Date( 1968, 5, 11, 23, 55,
30 );
Date Functions
Returns the day of the month using local time. The value is always
in the range 1..31.
var d = new Date( 1975, 12, 25 );
var x = d.getDate(); // x == 25
getDate( ) : Number
Returns the day of the week using local time. The value is always in
the range 1..7, with the week considered to begin on Monday.
getDay( ) : Number
Example 1:
var d = new Date( 1975, 12, 25, 22, 30, 15 );
var x = d.getDay(); // x == 4
Example 2:
var IndexToDay = [ "Mon", "Tue", "Wed", "Thu", "Fri", "Sat",
"Sun" ];
var d = new Date( 1975, 12, 28 );
var day = IndexToDay[ d.getDay() - 1 ]; // day == "Sun"
375
Enfocus Switch 10