开发者

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
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜