DHTMLX Docs & Samples Explorer

setDate(date)

Makes the specified date selected.

Parameters:

  • date - the date you want to make selected, you can pass Date Object or date as string using current date format
myCalendar.setDate(new Date(2011,5,8));
// or
myCalendar.setDate("2011-06-08"); // assuming date format is "%Y-%m-%d"

Description:

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

See also: