Mega Code Archive

 
Categories / Flex / Data Model
 

Declare a DateFormatter component with an MMDDYYYY date format, and binds the formatted version of a Date object

<?xml version="1.0"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml">   <mx:WebService id="myService" destination="Shop" />   <mx:DateFormatter id="StandardDateFormat" formatString="MM/DD/YYYY" />   <mx:TextInput text="{StandardDateFormat.format(myService.purchase.result.date)}" /> </mx:Application>