You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@flex.apache.org by "Cyrill Zadra (JIRA)" <ji...@apache.org> on 2013/03/22 14:49:15 UTC
[jira] [Resolved] (FLEX-12628) add optional formatString argument
to constructor
[ https://issues.apache.org/jira/browse/FLEX-12628?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Cyrill Zadra resolved FLEX-12628.
---------------------------------
Resolution: Fixed
Fix Version/s: Apache Flex 4.10.0
pushed a fix to develop branch
mustella tests/Formatter & tests/spark/formatter/DateFormatter passed with 0 fails.
> add optional formatString argument to constructor
> -------------------------------------------------
>
> Key: FLEX-12628
> URL: https://issues.apache.org/jira/browse/FLEX-12628
> Project: Apache Flex
> Issue Type: Improvement
> Components: Formatters
> Affects Versions: Adobe Flex SDK 2.0.1 (Release)
> Environment: Affected OS(s): Windows
> Affected OS(s):
> Language Found: English
> Reporter: Adobe JIRA
> Assignee: Cyrill Zadra
> Labels: easyfix
> Fix For: Apache Flex 4.10.0
>
>
> Add the formatString property as an optional argument to the DateFormatter constuctor. Or Add a 2nd argument to the format() method, for the formatString. Either way works.
> This will allow me to call the DateFormatter() in line, as needed.
> new DateFormatter("MM/DD/YYYY").format( myDate );
> vs
> var df:DateFormatter = new DateFormatter();
> df.formatString = "MM/DD/YYYY";
> df.format( myDate );
--
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