I have this string containing a date I need to parse to get a Date javascript object. It works if I execute the code in a PC browser but gives me an invalid date if I run the web p
Solution 1:
The date actually is invalid:
tjwebb@latitude:~$ rhino
Rhino 1.7release220100915
js> var date=newDate('2011-03-04T08:14:00+01:00');
js> date.toString();
Invalid Date
js>
This is using Rhino, Mozilla's javascript engine, which is about as "standard" as it gets.
-tjw
Share
Post a Comment
for "Javascript Invalid Date In Ios/android 2.2"
Post a Comment for "Javascript Invalid Date In Ios/android 2.2"