View Full Version : Simple DateField formatting question

07-24-2008, 09:32 PM
I'm trying to get the date in the format 24-Jul-2008 in the value box of the DateField and here is my code:

<mx:DateField x="488" y="352" width="124" formatString="DD-MMM-YYYY"/>

and it doesn't work. It prints 24-07072008. Can someone tell me how to get the date as 24-Jul-2008 in the DateField?


Can I
07-25-2008, 09:27 AM
The format of the displayed date in the text field. This property can contain any combination of "MM", "DD", "YY", "YYYY", delimiter, and punctuation characters.

you need to use labelFunction instead