Thank you for your time Manish… I do not want the column headers to show '07/01/2013', '06/01/2013', '05/01/2013', '04/01/2013', '03/01/2013' etc I want the headers to show Jul-2013, Jun-2013, May-2013, Apr-2013 etc
Regards William On Aug 8, 2013, at 10:15 PM, Manish Sharma <manish_sh...@hcl.com> wrote: > Hi William, > > May be you have to change the formatString="MM-DD-YYYY". > > This will be solve your problem. > > Regards, > Manish > > -----Original Message----- > From: William Page [mailto:wp...@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; > oColumnDef.labelFunction=dgCurFormat12 > oColumnDef.setStyle("textAlign","right") > colArray.push(oColumnDef); > j=j+1; > } > > > private function MonthDisplay(item:String):String{ > > var df:DateFormatter = new DateFormatter() > df.formatString="MMM-YYYY"; > 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: wp...@dashboardonline.com > > > > > > > ::DISCLAIMER:: > ---------------------------------------------------------------------------------------------------------------------------------------------------- > > 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, corrupted, > 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. > > ---------------------------------------------------------------------------------------------------------------------------------------------------- > >