DHTMLX Docs & Samples Explorer

showMonth(date)

Makes the specified month/year is currently visible in the calendar

Parameters:

  • date - month/year you want to show. Should be specified as a Date object or string in current date format
// shows June 2011
myCalendar.showMonth(new Date(2011,5,1));
 
// or shows January 2013
myCalendar.showMonth("2013-01-01");

If you want always show your custom month/year ignoring selected date (when calendar attached to input or form) - onShow event will useful