Date Object

New Date object with current date and time

//Syntax: new Date();
var now = new Date();
Result:

New Date object with specific date and time

//Syntax: new Date("month dd, yyyy hh:mm:ss);
var redSoxWin = new Date("October 21, 2004 12:01:00");
Result:
//Syntax: new Date(year, month, day, hours, min, sec, millisec);
redSoxWin = new Date(2004, 9, 21, 12, 01, 00, 00);
Result: