Possible Duplicate:
Help parsing ISO 8601 date in Javascript
I think this should be very simple but turned out amazingly tedious.
From WEB API, I received selected
object via ajax, and one of its properties is InspectionDate datetime string such as 2012-05-14T00:00:00
In javascript, I use following code to have correct date object
selected.JsInspectionDate = new Date(selected.InspectionDate);
But JsInspectionDate shows
2012/05/14 00:00 in firefox,
2012/05/13 20:00 in chrome and
NAN in IE9
for 2012-05-14T00:00:00.
Could someone tell me why this problem occurs? And how to fix this issue? I just want to show as in firefox for all browsers.