public/javascripts/yui/calendar/calendar.js
function() {
        var returnDates = [],
            selected = this.cfg.getProperty(DEF_CFG.SELECTED.key);

        for (var d=0;d<selected.length;++d) {
            var dateArray = selected[d];

            var date = DateMath.getDate(dateArray[0],dateArray[1]-1,dateArray[2]);
            returnDates.push(date);
        }

        returnDates.sort( function(a,b) { return a-b; } );
        return returnDates;
    }
function() {
        var returnDates = [],
            selected = this.cfg.getProperty(DEF_CFG.SELECTED.key);

        for (var d=0;d<selected.length;++d) {
            var dateArray = selected[d];

            var date = DateMath.getDate(dateArray[0],dateArray[1]-1,dateArray[2]);
            returnDates.push(date);
        }

        returnDates.sort( function(a,b) { return a-b; } );
        return returnDates;
    }
function ( ) { var returnDates = [ ] , selected = this . cfg . getProperty ( DEF_CFG . SELECTED . key ) ; for ( var d = 0 ; d < selected . length ; ++ d ) { var dateArray = selected [ d ] ; var date = DateMath . getDate ( dateArray [ 0 ] , dateArray [ 1 ] - 1 , dateArray [ 2 ] ) ; returnDates . push ( date ) ; } returnDates . sort ( function ( a , b ) { return a - b ; } ) ; return returnDates ; }
Gets the list of currently selected dates from the calendar.
@method getSelectedDates
@return {Date[]} An array of currently selected JavaScript Date objects.
Gets the list of currently selected dates from the calendar .