I realized that after I did the cell renderer... I just havn't gone back tochange it to a label function yet... too busy :)
-----Original Message----- From: Jeff Tapper [mailto:[EMAIL PROTECTED] Sent: Monday, February 28, 2005 12:46 PM To: [email protected] Subject: RE: [flexcoders] datetime format this can actually be done with a label function, no need for the cell renderer if all you want to do is change the text which is shown. At 01:40 PM 2/28/2005, you wrote: >Here is a cell renderer that I use: ><?xml version="1.0" encoding="iso-8859-1"?> ><mx:Canvas >xmlns:mx="<http://www.macromedia.com/2003/mxml>http://www.macromedia.com/2003/mxml"> > <mx:Script> > <![CDATA[ > > function setValue(str:String, item:Object, sel:Boolean):Void { > date_txt.text = StandardDateFormat.format(item.date); > } > > ]]> > </mx:Script> > <!-- Declare a formatter and specify formatting properties. --> > <mx:DateFormatter id="StandardDateFormat" formatString="M/DD/YYYY"/> > > <!-- Trigger the formatter while populating a string with data. --> > <mx:Text id="date_txt"/> > ></mx:Canvas> > >Just change the formatString to how you want to format your date.... > >-----Original Message----- >From: Miguel Diaz Valenzuela [mailto:[EMAIL PROTECTED] >Sent: Monday, February 28, 2005 12:39 PM >To: [email protected] >Subject: [flexcoders] datetime format > > > > >well, i�m again with another question to you coders > >i have a datetime row, with following format: 25/02/2005 12:57:00 > >how can I format this one and change it in Macromedia Flex to this: >25/02/2005 > >thanks in advance for all reply > > > > > > >Yahoo! Groups Links > > > > > > > > >Yahoo! Groups Sponsor >ADVERTISEMENT ><http://us.ard.yahoo.com/SIG=1298p00e0/M=298184.6018725.7038619.3001176/D=groups/S=1705007207:HM/EXP=1109702458/A=2593423/R=0/SIG=11el9gslf/*http://www.netflix.com/Default?mqso=60190075> >click here > > > >---------- >Yahoo! Groups Links > * To visit your group on the web, go to: > * > <http://groups.yahoo.com/group/flexcoders/>http://groups.yahoo.com/group/flexcoders/ > > > * > * To unsubscribe from this group, send an email to: > * > <mailto:[EMAIL PROTECTED]>[EMAIL PROTECTED] > > * > * Your use of Yahoo! Groups is subject to the > <http://docs.yahoo.com/info/terms/>Yahoo! Terms of Service. Yahoo! Groups Links

