Check documentation for the latest version 6.0 of dhtmlxSuite showMonth DHTMLX Docs

showMonth

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

void showMonth(Date|string date);

Parameters

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