Tag Archive for 'todatestring()'

15
Dec

Converting between dates and strings using the DateField class in Flex

The following example shows how you can convert Date objects to String objects using the static DateField.dateToString() method in Flex. As an added bonus, the example also shows how you can convert String objects to Date Objects using the static DateField.stringToDate() method.

Full code after the jump.

Continue reading ‘Converting between dates and strings using the DateField class in Flex’

12
Dec

Setting a custom label function on a Flex DateField control

The following example shows how you can format the displayed date in a DateField control by setting the labelFunction property and creating a custom label function.

Full code after the jump.

Continue reading ‘Setting a custom label function on a Flex DateField control’