[ https://issues.apache.org/jira/browse/FLEX-16008?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Justin Mclean reopened FLEX-16008: ---------------------------------- Assignee: (was: Adobe JIRA) Still an issue in Apache Flex 4.10 develop branch. > Enhance DateFormatter to support custom string like "YY Years MM Months DD > Days" > -------------------------------------------------------------------------------- > > Key: FLEX-16008 > URL: https://issues.apache.org/jira/browse/FLEX-16008 > Project: Apache Flex > Issue Type: Bug > Components: Formatters > Affects Versions: Adobe Flex SDK 3.0 (Release) > Environment: Affected OS(s): All OS Platforms > Language Found: English > Reporter: Adobe JIRA > Priority: Minor > > Run the following application, Pick a date in the date field, you will see > the label output will be something like "08 years 10 months 22 days" > Notice the format string is "YY years MM months DD days". However, if we > change this to "YY Years MM Months DD Days", the dateformatter will fail to > output anything. > <?xml version="1.0" encoding="utf-8"?> > <!-- Simple example to demonstrate the DateField control. --> > <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"> > > <mx:DateFormatter id="df" formatString="YY years MM months DD days"/> > <mx:Panel title="DateField Control Example" height="75%" width="75%" > paddingTop="10" paddingLeft="10" paddingRight="10"> > <mx:Label text="Disable dates on or before June 1, 2006."/> > <mx:DateField id="dateField2" yearNavigationEnabled="true" > disabledRanges="{[ {rangeEnd: new Date(2006, 5, 1)} ]}" /> > <mx:Label color="blue" text="Date selected: > {df.format(dateField2.selectedDate)}"/> > </mx:Panel> > </mx:Application> -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira