Return-Path: X-Original-To: apmail-flex-dev-archive@www.apache.org Delivered-To: apmail-flex-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 80D2AF751 for ; Fri, 22 Mar 2013 07:39:18 +0000 (UTC) Received: (qmail 79744 invoked by uid 500); 22 Mar 2013 07:39:17 -0000 Delivered-To: apmail-flex-dev-archive@flex.apache.org Received: (qmail 79714 invoked by uid 500); 22 Mar 2013 07:39:17 -0000 Mailing-List: contact dev-help@flex.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@flex.apache.org Delivered-To: mailing list dev@flex.apache.org Received: (qmail 79694 invoked by uid 99); 22 Mar 2013 07:39:16 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 22 Mar 2013 07:39:16 +0000 Date: Fri, 22 Mar 2013 07:39:16 +0000 (UTC) From: "Justin Mclean (JIRA)" To: dev@flex.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (FLEX-12628) add optional formatString argument to constructor MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/FLEX-12628?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Justin Mclean updated FLEX-12628: --------------------------------- Labels: easyfix (was: ) > 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 > Labels: easyfix > > 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