Using a labelFunction. It will receive the data in current line and the column, and must return a String.
<mx:DataGridColumn labelFunction="dateLabelFunction"/> private function dateLabelFunction(obj:User, column:DataGridColumn):String { return obj.date.getYear + "-"; //... } -----Mensagem original----- De: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] Em nome de markflex2007 Enviada em: quarta-feira, 10 de dezembro de 2008 16:48 Para: flexcoders@yahoogroups.com Assunto: [flexcoders] Date format in DataGrid? I display data with DataGrid and dataProvider bind to a arraycollection (dataProvider="{acUsers}"), one column in the DataGrid is Date field. My question is how to change the Date display format in the DataGrid (like 2008-5-20). Thanks for help Mark ------------------------------------ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Alternative FAQ location: https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf- 1e62079f6847 Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links