public/javascripts/yui/calendar/calendar.js
function(sDates) {
        var aReturn = [],
            aDates = sDates.split(this.Locale.DATE_DELIMITER);
        
        for (var d=0;d<aDates.length;++d) {
            var sDate = aDates[d];
    
            if (sDate.indexOf(this.Locale.DATE_RANGE_DELIMITER) != -1) {
                // This is a range
                var aRange = sDate.split(this.Locale.DATE_RANGE_DELIMITER),
                    dateStart = this._parseDate(aRange[0]),
                    dateEnd = this._parseDate(aRange[1]),
                    fullRange = this._parseRange(dateStart, dateEnd);

                aReturn = aReturn.concat(fullRange);
            } else {
                // This is not a range
                var aDate = this._parseDate(sDate);
                aReturn.push(aDate);
            }
        }
        return aReturn;
    }
function(sDates) {
        var aReturn = [],
            aDates = sDates.split(this.Locale.DATE_DELIMITER);
        
        for (var d=0;d<aDates.length;++d) {
            var sDate = aDates[d];
    
            if (sDate.indexOf(this.Locale.DATE_RANGE_DELIMITER) != -1) {
                // This is a range
                var aRange = sDate.split(this.Locale.DATE_RANGE_DELIMITER),
                    dateStart = this._parseDate(aRange[0]),
                    dateEnd = this._parseDate(aRange[1]),
                    fullRange = this._parseRange(dateStart, dateEnd);

                aReturn = aReturn.concat(fullRange);
            } else {
                // This is not a range
                var aDate = this._parseDate(sDate);
                aReturn.push(aDate);
            }
        }
        return aReturn;
    }
function ( sDates ) { var aReturn = [ ] , aDates = sDates . split ( this . Locale . DATE_DELIMITER ) ; for ( var d = 0 ; d < aDates . length ; ++ d ) { var sDate = aDates [ d ] ; if ( sDate . indexOf ( this . Locale . DATE_RANGE_DELIMITER ) != - 1 ) { // This is a range var aRange = sDate . split ( this . Locale . DATE_RANGE_DELIMITER ) , dateStart = this . _parseDate ( aRange [ 0 ] ) , dateEnd = this . _parseDate ( aRange [ 1 ] ) , fullRange = this . _parseRange ( dateStart , dateEnd ) ; aReturn = aReturn . concat ( fullRange ) ; } else { // This is not a range var aDate = this . _parseDate ( sDate ) ; aReturn . push ( aDate ) ; } } return aReturn ; }
Converts a multi or single-date string to an array of date field arrays
@private
@param {String} sDates  Date string with one or more comma-delimited dates. Valid formats are mm/dd, mm/dd/yyyy, mm/dd/yyyy-mm/dd/yyyy
@return       An array of date field arrays
@type Array[](Number[])
Converts a multi or single - date string to an array of date field arrays