public/javascripts/yui/calendar/calendar.js
function(date) {
        var monthLabel  = this.Locale.LOCALE_MONTHS[date.getMonth()] + this.Locale.MY_LABEL_MONTH_SUFFIX,
            yearLabel = (date.getFullYear() + this.Locale.YEAR_OFFSET) + this.Locale.MY_LABEL_YEAR_SUFFIX;

        if (this.Locale.MY_LABEL_MONTH_POSITION == 2 || this.Locale.MY_LABEL_YEAR_POSITION == 1) {
            return yearLabel + monthLabel;
        } else {
            return monthLabel + yearLabel;
        }
    }
function(date) {
        var monthLabel  = this.Locale.LOCALE_MONTHS[date.getMonth()] + this.Locale.MY_LABEL_MONTH_SUFFIX,
            yearLabel = (date.getFullYear() + this.Locale.YEAR_OFFSET) + this.Locale.MY_LABEL_YEAR_SUFFIX;

        if (this.Locale.MY_LABEL_MONTH_POSITION == 2 || this.Locale.MY_LABEL_YEAR_POSITION == 1) {
            return yearLabel + monthLabel;
        } else {
            return monthLabel + yearLabel;
        }
    }
function ( date ) { var monthLabel = this . Locale . LOCALE_MONTHS [ date . getMonth ( ) ] + this . Locale . MY_LABEL_MONTH_SUFFIX , yearLabel = ( date . getFullYear ( ) + this . Locale . YEAR_OFFSET ) + this . Locale . MY_LABEL_YEAR_SUFFIX ; if ( this . Locale . MY_LABEL_MONTH_POSITION == 2 || this . Locale . MY_LABEL_YEAR_POSITION == 1 ) { return yearLabel + monthLabel ; } else { return monthLabel + yearLabel ; } }
Helper method, to format a Month Year string, given a JavaScript Date, based on the
Calendar localization settings

@method _buildMonthLabel
@private
@param {Date} date
@return {String} Formated month, year string
Helper method to format a Month Year string given a JavaScript Date based on the Calendar localization settings