jquery-src/jquery.calendars.picker.js
function(elem, year, month, day) {
			var inst = this._getInst(elem);
			if (!$.isEmptyObject(inst) && (day != null ||
					(inst.drawDate.year() !== year || inst.drawDate.month() !== month))) {
				inst.prevDate = inst.drawDate.newDate();
				var calendar = inst.options.calendar;
				var show = this._checkMinMax((year != null ?
					calendar.newDate(year, month, 1) : calendar.today()), inst);
				inst.drawDate.date(show.year(), show.month(), 
					(day != null ? day : Math.min(inst.drawDate.day(),
					calendar.daysInMonth(show.year(), show.month()))));
				this._update(elem);
			}
		}
function(elem, year, month, day) {
			var inst = this._getInst(elem);
			if (!$.isEmptyObject(inst) && (day != null ||
					(inst.drawDate.year() !== year || inst.drawDate.month() !== month))) {
				inst.prevDate = inst.drawDate.newDate();
				var calendar = inst.options.calendar;
				var show = this._checkMinMax((year != null ?
					calendar.newDate(year, month, 1) : calendar.today()), inst);
				inst.drawDate.date(show.year(), show.month(), 
					(day != null ? day : Math.min(inst.drawDate.day(),
					calendar.daysInMonth(show.year(), show.month()))));
				this._update(elem);
			}
		}
function ( elem , year , month , day ) { var inst = this . _getInst ( elem ) ; if ( ! $ . isEmptyObject ( inst ) && ( day != null || ( inst . drawDate . year ( ) !== year || inst . drawDate . month ( ) !== month ) ) ) { inst . prevDate = inst . drawDate . newDate ( ) ; var calendar = inst . options . calendar ; var show = this . _checkMinMax ( ( year != null ? calendar . newDate ( year , month , 1 ) : calendar . today ( ) ) , inst ) ; inst . drawDate . date ( show . year ( ) , show . month ( ) , ( day != null ? day : Math . min ( inst . drawDate . day ( ) , calendar . daysInMonth ( show . year ( ) , show . month ( ) ) ) ) ) ; this . _update ( elem ) ; } }
Set the currently shown month, defaulting to today's.
@memberof CalendarsPicker
@param elem {Element} The control to affect.
@param [year] {number} The year to show.
@param [month] {number} The month to show (1-12).
@param [day] {number} The day to show.
@example $(selector).datepick('showMonth', 2014, 12, 25)
Set the currently shown month defaulting to today s .