I've run into a super strange thing that apparently is IE-specific in toLocaleString
on dates.
In the IE console window:
new Date(2014-08-28T20:51:09.9190106Z).toLocaleString();
8/28/2014 1:51:09 PM
Now, type out that string manually as a string and compare it to what the method returned:
8/28/2014 1:51:09 PM === new Date(2014-08-28T20:51:09.9190106Z).toLocaleString();
false
Does anyone have any idea why this is occurring in IE? This doesn't occur in Chrome.
Update: more examples:
new Date(8/28/2014 1:51:09 PM)
[date] Thu Aug 28 2014 13:51:09 GMT-0700 (Pacific Daylight Time)[date] Thu Aug 28 2014 13:51:09 GMT-0700 (Pacific Daylight Time)
new Date(new Date(2014-08-28T20:51:09.9190106Z).toLocaleString())
[date] Invalid Date[date] Invalid Date