Data Formatting Using MXML Formatters : Formatter « Data Model « Flex






Data Formatting Using MXML Formatters

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

1.Formatter ErrorFormatter Error
2.Formatting data with the formatter classesFormatting data with the formatter classes
3.Edit Event FormatterEdit Event Formatter
4.End Edit Event FormatterEnd Edit Event Formatter
5.Set up the formatters.