Mega Code Archive

 
Categories / Flex / Data Model
 

Formatting the Date as a Date object

<?xml version="1.0"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml">     <mx:Script>                  [Bindable]         public var dDate:Date = new Date("12/01/08 12:42");            </mx:Script>     <mx:DateFormatter id="fmtDate" formatString="MM.DD.YY" />     <mx:Label text="Formatting the Date as a Date object: {fmtDate.format(dDate)}" /> </mx:Application>