Check documentation for the latest version of dhtmlxSuite showMonth DHTMLX Docs

showMonth

makes the specified month/year as currently visible in the calendar

void showMonth(Date|string date);
dateDate|stringmonth/year you want to show

Example

// shows June, 2011
myCalendar.showMonth(new Date(2011,5,1));
 
// or shows January, 2013
myCalendar.showMonth("2013-01-01");

Details

if you want always show your custom month/year ignoring the selected date (when a calendar is attached to an input or a form) - the onShow event will be useful

Back to top