using Mozilla Firefox Firebug:
var myDate = new Date(2012, 9, 23, 0,0,0,0); myDate;
Date {Tue Oct 23 2012 00:00:00 GMT-0400 (Eastern Dayli
No, javascript's Date months start with 0, so 9 is a 10th month and it is October
Date
0
9
Reference:
new Date(year, month [, day, hour, minute, second, millisecond]); [...] month Integer value representing the month, beginning with 0 for January to 11 for December.
new Date(year, month [, day, hour, minute, second, millisecond]);
[...]
month Integer value representing the month, beginning with 0 for January to 11 for December.