开发者

How to convert time from CEST to UTC in flex?

开发者 https://www.devze.com 2023-04-12 13:25 出处:网络
How I can convert \"23-08-2012 00开发者_开发技巧:00:00 CEST\" to UTC format in flex? ThanksIf your date is a string, you can use the DateFormatter to convert it to a Date type and then get UTC time f

How I can convert "23-08-2012 00开发者_开发技巧:00:00 CEST" to UTC format in flex?

Thanks


If your date is a string, you can use the DateFormatter to convert it to a Date type and then get UTC time from there:

var date:Date = DateFormatter.parseDateString(dateString);
date.getUTCDate();

You can see all the UTC functions at the Date API reference.

0

精彩评论

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