Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by santosh on Oct 18, 2008 03:29
open dhtmlx forum
date column sorting

I want to sort the date column values.
I have used mygrid.setColSorting("date");

But it didnt worked . i have used 17-SEP-2008 as date format.

If not which is the correct date format i have to use to enable the sorting on the date columns ??
Answer posted by Support on Oct 20, 2008 01:48
By default sorting will recognize any javascript compatible data format ( those are mm/dd/yyyy and some other similar to it )
If you need to use custom date format, you can
a) use dhxCalendar excell and mygrid.setDateFormat(
b) use custom sorting routine
           http://dhtmlx.com/docs/products/dhtmlxGrid/doc/articles/Sorting_in_grid.html#grid_art_sort