Javascript Invalid Date Error in Internet Explorer

The string given to the date constructor should be an RFC2822 or ISO 8601 formatted date. In your example it isn’t. Try the following:

new Date("2012-11-02T19:30:00.000Z");

or using an alternate constructor:

new Date(2012, 11, 2, 19, 30, 0)

Leave a Comment