public/javascripts/yui/calendar/calendar.js
function(month) {
        month = parseInt(month, 10);
        var currYear;

        var cfgPageDate = DEF_CFG.PAGEDATE.key;

        for (var p=0; p<this.pages.length; ++p) {
            var cal = this.pages[p];
            var pageDate = cal.cfg.getProperty(cfgPageDate);
            if (p === 0) {
                currYear = pageDate.getFullYear();
            } else {
                pageDate.setFullYear(currYear);
            }
            this._setMonthOnDate(pageDate, month+p); 
            cal.cfg.setProperty(cfgPageDate, pageDate);
        }
    }
function(month) {
        month = parseInt(month, 10);
        var currYear;

        var cfgPageDate = DEF_CFG.PAGEDATE.key;

        for (var p=0; p<this.pages.length; ++p) {
            var cal = this.pages[p];
            var pageDate = cal.cfg.getProperty(cfgPageDate);
            if (p === 0) {
                currYear = pageDate.getFullYear();
            } else {
                pageDate.setFullYear(currYear);
            }
            this._setMonthOnDate(pageDate, month+p); 
            cal.cfg.setProperty(cfgPageDate, pageDate);
        }
    }
function ( month ) { month = parseInt ( month , 10 ) ; var currYear ; var cfgPageDate = DEF_CFG . PAGEDATE . key ; for ( var p = 0 ; p < this . pages . length ; ++ p ) { var cal = this . pages [ p ] ; var pageDate = cal . cfg . getProperty ( cfgPageDate ) ; if ( p === 0 ) { currYear = pageDate . getFullYear ( ) ; } else { pageDate . setFullYear ( currYear ) ; } this . _setMonthOnDate ( pageDate , month + p ) ; cal . cfg . setProperty ( cfgPageDate , pageDate ) ; } }
Sets the calendar group's month explicitly. This month will be set into the first
page of the multi-page calendar, and all other months will be iterated appropriately.
@method setMonth
@param {Number} month  The numeric month, from 0 (January) to 11 (December)
Sets the calendar group s month explicitly . This month will be set into the first page of the multi - page calendar and all other months will be iterated appropriately .