I’m having a weird issue with Internet Explorer which is not converting a valid string date to JavaScript Date method.
The string is as the following:
2011-12-26T13:55:49.377Z
It’s working fine on Chrome and Firefox but not on Explorer.
This is the code:
var now = new Date;
var call_start = new Date(call.start);
var difference = now .getTime() - call_start.getTime();
call.start is valid but call_start is NaN so the Difference is NaN.
What’s the problem here?
I really need the miliseconds here…
we encounter same problem lately,
the easyer way is to explode your string or use regexp and set manually each part of the date object manually using methods
thanks crapy Jscript implementation from microsoft