Thursday, May 27, 2010

Letting Flex know about the date format

When you need to pass the date other than in the US format in Flex application, you can use the following code;

import mx.controls.DateField;

var d:Date = DateField.stringToDate("30-12-2007","DD-MM-YYYY");

Original source of this entry.

No comments: