public/javascripts/yui/calendar/calendar.js
function(startDate, endDate) {
        var dCurrent = DateMath.add(DateMath.getDate(startDate[0],startDate[1]-1,startDate[2]),DateMath.DAY,1),
            dEnd     = DateMath.getDate(endDate[0],  endDate[1]-1,  endDate[2]),
            results = [];

        results.push(startDate);
        while (dCurrent.getTime() <= dEnd.getTime()) {
            results.push([dCurrent.getFullYear(),dCurrent.getMonth()+1,dCurrent.getDate()]);
            dCurrent = DateMath.add(dCurrent,DateMath.DAY,1);
        }
        return results;
    }
function(startDate, endDate) {
        var dCurrent = DateMath.add(DateMath.getDate(startDate[0],startDate[1]-1,startDate[2]),DateMath.DAY,1),
            dEnd     = DateMath.getDate(endDate[0],  endDate[1]-1,  endDate[2]),
            results = [];

        results.push(startDate);
        while (dCurrent.getTime() <= dEnd.getTime()) {
            results.push([dCurrent.getFullYear(),dCurrent.getMonth()+1,dCurrent.getDate()]);
            dCurrent = DateMath.add(dCurrent,DateMath.DAY,1);
        }
        return results;
    }
function ( startDate , endDate ) { var dCurrent = DateMath . add ( DateMath . getDate ( startDate [ 0 ] , startDate [ 1 ] - 1 , startDate [ 2 ] ) , DateMath . DAY , 1 ) , dEnd = DateMath . getDate ( endDate [ 0 ] , endDate [ 1 ] - 1 , endDate [ 2 ] ) , results = [ ] ; results . push ( startDate ) ; while ( dCurrent . getTime ( ) <= dEnd . getTime ( ) ) { results . push ( [ dCurrent . getFullYear ( ) , dCurrent . getMonth ( ) + 1 , dCurrent . getDate ( ) ] ) ; dCurrent = DateMath . add ( dCurrent , DateMath . DAY , 1 ) ; } return results ; }
Converts a date range to the full list of included dates
@private
@param {Number[]} startDate Date field array representing the first date in the range
@param {Number[]} endDate  Date field array representing the last date in the range
@return       An array of date field arrays
@type Array[](Number[])
Converts a date range to the full list of included dates