Convert String to DateTime
What is the best way to convert a string to DateTime?
The format of 开发者_Go百科the string is dd/mm/yyyy hh:mm:ss.
Thanks a lot, Vincent
Have you considered Date.parse() (doc here)
var dateParsed:String = "Sat Nov 30 1974"; var milliseconds:Number = Date.parse(dateParsed); trace(milliseconds); // 155030400000
精彩评论