Javascript date compatibility

Every browser implements Javascript in their own way. One of the most notable differences lies in each browsers implementation of the Date object. A date object can be instantiated with a parameter which is a date, however the formats in which each browser can create the object is quite different.

  Chrome Firefox Safari IE7 IE8 IE9
11-30-2012
30-11-2012
30/11/2012
11/30/2012
Fri 30 November 2012
30 Nov 2012
Fri 30 November 2012 12:00
Fri 30 November 2012 12:00:00
Friday 30 Nov 2012 12
Fri 30 Nov 2012
Friday 30 Nov
Fri 30 Nov
Friday 30 Nov 2012
Fri 30 Nov 12:00:00
Fri 30 Nov 12:00
11-30-2012 12:00:00
30-11-2012 12:00:00
30/11/2012 12:00:00
11/30/2012 12:00:00
1354298400

The table shows values that can be passed to the date object like:

var myDate = New Date('11/30/2012');
Javascript date