Check documentation for the latest version of dhtmlxSuite setDateFormat DHTMLX Docs

setDateFormat

sets a mask for date formatting in the grid (works for "dhxCalendar" and "dhxCalendarA" types only)

void setDateFormat(string mask,string server_mask);
maskstringsets the client-side date format
server_maskstringsets the server-side date format

Available only in PRO Edition

Example

mygrid.setDateFormat("%m/%d/%Y", "%Y/%m/%d"); // 05/26/2010, 2010/05/26

Details

You can get more format details in the chapter Formatting Number and Date Values.

Back to top