javascript - IE Date.parse method returns NaN for Date with Time string -
We are trying to parse the date with the timestamp string, it's running in IE, but Firefox works fine is.
Here is the code
WARNING (New Date (Date PRSE ("2010-01-31 T12: 00: 00.233467-05: 00")));
Any ideas work in IE browser? thank you in advanced.
If you can keep your input in this form:
YYYY / MM / DDThh: mm: ss
This will work.
Example:
WARNING (New Date (dated PRSE ('2010-01-31 T12: 00: 00.233467-05: 00'.rele (/ - / ig, '/').split('.')[0]))));
If you want time zone, then you have to find another way
Comments
Post a Comment