Data Formatting with DateFormatter
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml">
<mx:DateFormatter id="dateFormatter" formatString="EEEE, MMM. D, YYYY at H:NN A" />
<mx:Panel>
<mx:DateField id="dateField" change="formattedInput.text = dateFormatter.format(dateField.selectedDate)" />
<mx:TextInput id="formattedInput" width="220" />
</mx:Panel>
</mx:Application>
Related examples in the same category