Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted on Feb 12, 2009 05:59
open dhtmlx forum
grid date format

Could you please give me a solution to change grid cell date format to "%d-%m-%y %h:%m:%s" (if possible with calders objects).
Answer posted by dhxSupport on Feb 12, 2009 08:18

To set date format you should do the following:

1. You sells should be "dhxCalendar" or "dhxCalendarA" type.

http://dhtmlx.com/docs/products/dhtmlxGrid/samples/cell_types/calendar_grid.html

2. use setDateFormat() methos to set date format. setDateFormat method will set date format for the whole grid, not for the certain cell or column. This method is availible at PRO version only

http://dhtmlx.com/docs/products/dhtmlxGrid/samples/cell_types/pro_excells_numberformat.html

http://dhtmlx.com/docs/products/dhtmlxGrid/doc/articles/Cell_values_formating.html#grid_art_formatcells