Fern2
asked on
Date problem. Flash not accepting date string
Hi
I cant get Flash to regonize this string "2007-01-16 19:45:00.0 GMT" as a date.
1. Tried this and got in the trace "Invalid time"
datestring = "2007-01-16 19:45:00.0 GMT";
var newdate:Date = new Date();
newdate.setTime(datestring );
trace(newdate);
2. Then I tried this and got again "Invalid time"
datestring = "2007-01-16 19:45:00.0 GMT";
var newdate:Date = new Date(datestring);
trace(newdate);
I cant get Flash to regonize this string "2007-01-16 19:45:00.0 GMT" as a date.
1. Tried this and got in the trace "Invalid time"
datestring = "2007-01-16 19:45:00.0 GMT";
var newdate:Date = new Date();
newdate.setTime(datestring
trace(newdate);
2. Then I tried this and got again "Invalid time"
datestring = "2007-01-16 19:45:00.0 GMT";
var newdate:Date = new Date(datestring);
trace(newdate);
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER