public/javascripts/yui/calendar/calendar.js
function(sDate) {
        var aDate = sDate.split(this.Locale.DATE_FIELD_DELIMITER),
            rArray;

        if (aDate.length == 2) {
            rArray = [aDate[this.Locale.MD_MONTH_POSITION-1],aDate[this.Locale.MD_DAY_POSITION-1]];
            rArray.type = Calendar.MONTH_DAY;
        } else {
            rArray = [aDate[this.Locale.MDY_YEAR_POSITION-1] - this.Locale.YEAR_OFFSET, aDate[this.Locale.MDY_MONTH_POSITION-1],aDate[this.Locale.MDY_DAY_POSITION-1]];
            rArray.type = Calendar.DATE;
        }

        for (var i=0;i<rArray.length;i++) {
            rArray[i] = parseInt(rArray[i], 10);
        }
    
        return rArray;
    }
function(sDate) {
        var aDate = sDate.split(this.Locale.DATE_FIELD_DELIMITER),
            rArray;

        if (aDate.length == 2) {
            rArray = [aDate[this.Locale.MD_MONTH_POSITION-1],aDate[this.Locale.MD_DAY_POSITION-1]];
            rArray.type = Calendar.MONTH_DAY;
        } else {
            rArray = [aDate[this.Locale.MDY_YEAR_POSITION-1] - this.Locale.YEAR_OFFSET, aDate[this.Locale.MDY_MONTH_POSITION-1],aDate[this.Locale.MDY_DAY_POSITION-1]];
            rArray.type = Calendar.DATE;
        }

        for (var i=0;i<rArray.length;i++) {
            rArray[i] = parseInt(rArray[i], 10);
        }
    
        return rArray;
    }
function ( sDate ) { var aDate = sDate . split ( this . Locale . DATE_FIELD_DELIMITER ) , rArray ; if ( aDate . length == 2 ) { rArray = [ aDate [ this . Locale . MD_MONTH_POSITION - 1 ] , aDate [ this . Locale . MD_DAY_POSITION - 1 ] ] ; rArray . type = Calendar . MONTH_DAY ; } else { rArray = [ aDate [ this . Locale . MDY_YEAR_POSITION - 1 ] - this . Locale . YEAR_OFFSET , aDate [ this . Locale . MDY_MONTH_POSITION - 1 ] , aDate [ this . Locale . MDY_DAY_POSITION - 1 ] ] ; rArray . type = Calendar . DATE ; } for ( var i = 0 ; i < rArray . length ; i ++ ) { rArray [ i ] = parseInt ( rArray [ i ] , 10 ) ; } return rArray ; }
BEGIN DATE PARSE METHODS 
Converts a date string to a date field array
@private
@param {String} sDate   Date string. Valid formats are mm/dd and mm/dd/yyyy.
@return    A date field array representing the string passed to the method
@type Array[](Number[])
BEGIN DATE PARSE METHODS Converts a date string to a date field array