Check documentation for the latest version of dhtmlxSuite setDate DHTMLX Docs

setDate

makes the specified date selected

void setDate(Date|string date);
dateDate|stringthe date you want to make selected

Example

myCalendar.setDate(new Date(2011,5,8));
 
// or
myCalendar.setDate("2011-06-08"); // assuming that date format is "%Y-%m-%d"

Details

the date should be defined either in the default date format ("%Y-%m-%d") or in the format that was indicated in the setDateFormat() method

Back to top