DateFormatter format string "MMM DD, YY
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
backgroundColor="#FFFFFF" width="500" height="280">
<mx:DateFormatter id="dateFormatMedium" formatString="MMM DD, YY"/>
<mx:Panel title="Simple Formatter" layout="horizontal" width="100%" height="100%">
<mx:DateChooser id="cal" />
<mx:VBox>
<mx:Label text="{cal.selectedDate}"/>
<mx:Label text="{dateFormatMedium.format(cal.selectedDate)}"/>
</mx:VBox>
</mx:Panel>
</mx:Application>
Related examples in the same category