Check documentation for the latest version of dhtmlxSuite setDates DHTMLX Docs

setDates

makes the specified dates selected

void setDates(Date|string dateLeft,Date|string dateRight);
dateLeftDate|stringdate for the left calendar instance
dateRightDate|stringdate for the right calendar instance

Example

// using date object
myCalendar.setDates(new Date(2011,5,8),new Date(2011,6,10));
 
// using string
// assuming that date format is "%Y-%m-%d"
myCalendar.setDate("2011-06-08","2011-07-10");

Back to top