Set format string for DateFormatter
<?xml version="1.0"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml">
<mx:TextInput text="{dateFormatter.format(new Date(2010, 0, 2, 16, 25, 10))}" />
<mx:DateFormatter id="dateFormatter" formatString="MMMM D, YYYY at L:N:S A" />
</mx:Application>
Related examples in the same category