sanjoy roy
sanjoy roy

Reputation: 297

How to convert time from CEST to UTC in flex?

How I can convert "23-08-2012 00:00:00 CEST" to UTC format in flex?

Thanks

Upvotes: 0

Views: 855

Answers (1)

J_A_X
J_A_X

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

Related Questions