
JavaScript
Mastering Arrays
Last updated: July 30th, 2004 There are fours ways of instantiating a date object: new Date() new Date(milliseconds) new Date(dateString) new Date(year, month, day, hours, minutes, seconds, milliseconds) //most parameters here are optional. Not specifying causes 0 to be passed in. Here are a few examples of instantiating a date: today = new Date() birthday = new Date("March 11, 1985 09:25:00") birthday = new Date(85,2,11) birthday = new Date(85,2,11,9,25,0)

