omusico / zfdatagrid

Automatically exported from code.google.com/p/zfdatagrid
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

Format columns #714

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Zf_datagrid

I have a column with an integer field: Time of creation =time();
exp. 1308821239 
I would like to show this field in the datagrid 
like a date format.

How can I do this in zf_datagrid.
Converting an integer field to date format?

Thanks

Original issue reported on code.google.com by thomas.v...@telenet.be on 23 Jun 2011 at 10:15

GoogleCodeExporter commented 9 years ago
Hi,

ZFDatagrid uses Zend_Date for format date

$grid->updaColumn('field',array('format'=>'date'));

Should do the trick

Best Regards,
Bento Vilas Boas

Original comment by bento.vi...@gmail.com on 15 Jul 2011 at 2:21