Mega Code Archive

 
Categories / Flex / Components
 

Set the formatString property to MMDDYY to display a two-digit year

<?xml version="1.0"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml">     <mx:Label text="{date2.formatString}" />     <mx:DateField id="date2" editable="true" width="100" formatString="MM/DD/YY" /> </mx:Application>