Declare a DateFormatter component with an MM/DD/YYYY 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>
Related examples in the same category