Mega Code Archive

 
Categories / Flex / Data Model
 

DateFormatter format string MMDDYY

<?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="dateFormatShort" formatString="MM/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="{dateFormatShort.format(cal.selectedDate)}"/>          </mx:VBox>     </mx:Panel> </mx:Application>