Mega Code Archive

 
Categories / Flex / Data Model
 

DateFormatter format string MMMM DD, YYYY

<?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="dateFormatFull" formatString="MMMM DD, YYYY"/>     <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="{dateFormatFull.format(cal.selectedDate)}"/>          </mx:VBox>     </mx:Panel> </mx:Application>