Formatting the Date as a String : DateFormatter « Data Model « Flex
- Flex
- Data Model
- DateFormatter
Formatting the Date as a String

<?xml version="1.0"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml">
<mx:Script>
[Bindable]
public var sDate:String = "12/01/10 12:42";
</mx:Script>
<mx:DateFormatter id="fmtDate" formatString="MM.DD.YY" />
<mx:Label text="Formatting the Date as a String: {fmtDate.format(sDate)}" />
</mx:Application>
Related examples in the same category