开发者

Convert String to DateTime

开发者 https://www.devze.com 2022-12-24 03:10 出处:网络
What is the best way to convert a string to DateTime? The format of 开发者_Go百科the string is dd/mm/yyyy hh:mm:ss.

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

精彩评论

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