Check documentation for the latest version 6.0 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);

Parameters

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