flex-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Manish Sharma <manish_sh...@hcl.com>
Subject RE: Issue with DateFormatter after upgrade
Date Fri, 09 Aug 2013 05:15:01 GMT
Hi William,

May be you have to change the formatString="MM-DD-YYYY".

This will be solve your problem.


-----Original Message-----
From: William Page [mailto:wpage@dashboardonline.com] 
Sent: Thursday, August 08, 2013 11:51 PM
To: dev@flex.apache.org
Subject: Issue with DateFormatter after upgrade

Here is the code...

			var j:int = 0;
			for (i=minNum;i<length;i++)  {   
				oColumnDef = new AdvancedDataGridColumn();
				oColumnDef.headerText = MonthDisplay(modelLocator.aryMonths.getItemAt(i).begDate);

				oColumnDef.dataField = "s"+[j+1];
				oColumnDef.width = 100;

			private function MonthDisplay(item:String):String{		
				var df:DateFormatter = new DateFormatter()
				return df.format(item);  		

aryMonths contains dates like these ('07/01/2013', '06/01/2013', '05/01/2013', '04/01/2013',
'03/01/2013', etc)

The header text ends up showing Jan-2013,  Jan-2013,  Jan-2013,  Jan-2013,  Jan-2013 etc)

It seems that the DateFormatter is reading the date in reverse order Day-Month-Year when applying
the format...Versus Month-Day-Year...Is there a way to resolve this without rewriting all
my database scripts to reformat dates?

William Page III
tel: (510) 589-0100
email: wpage@dashboardonline.com


The contents of this e-mail and any attachment(s) are confidential and intended for the named
recipient(s) only.
E-mail transmission is not guaranteed to be secure or error-free as information could be intercepted,
lost, destroyed, arrive late or incomplete, or may contain viruses in transmission. The e
mail and its contents
(with or without referred errors) shall therefore not attach any liability on the originator
or HCL or its affiliates.
Views or opinions, if any, presented in this email are solely those of the author and may
not necessarily reflect the
views or opinions of HCL or its affiliates. Any form of reproduction, dissemination, copying,
disclosure, modification,
distribution and / or publication of this message without the prior written consent of authorized
representative of
HCL is strictly prohibited. If you have received this email in error please delete it and
notify the sender immediately.
Before opening any email and/or attachments, please check them for viruses and other defects.


View raw message