Reputation: 297
How I can convert "23-08-2012 00:00:00 CEST" to UTC format in flex?
Thanks
Upvotes: 0
Views: 855
Reputation: 12847
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.
Upvotes: 2