Data Formatting Using MXML Formatters
<?xml version="1.0"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml">
<mx:DateFormatter id="dateFrm" formatString="MM/DD/YY" />
<mx:Panel title="Date Formatter" horizontalAlign="center">
<mx:DateField id="dteField" />
<mx:TextArea text="{dateFrm.format(dteField.text)}" />
</mx:Panel>
</mx:Application>
Related examples in the same category