Link to home
Start Free TrialLog in
Avatar of Fern2
Fern2Flag for Iceland

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);
ASKER CERTIFIED SOLUTION
Avatar of CyanBlue
CyanBlue
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Fern2

ASKER

Thats strange.