public/javascripts/yui/calendar/calendar.js
function(date, dateBegin, dateEnd) {
        if (this.after(date, dateBegin) && this.before(date, dateEnd)) {
            return true;
        } else {
            return false;
        }
    }
function(date, dateBegin, dateEnd) {
        if (this.after(date, dateBegin) && this.before(date, dateEnd)) {
            return true;
        } else {
            return false;
        }
    }
function ( date , dateBegin , dateEnd ) { if ( this . after ( date , dateBegin ) && this . before ( date , dateEnd ) ) { return true ; } else { return false ; } }
Determines whether a given date is between two other dates on the calendar.
@method between
@param {Date} date  The date to check for
@param {Date} dateBegin The start of the range
@param {Date} dateEnd  The end of the range
@return {Boolean} true if the date occurs between the compared dates; false if not.
Determines whether a given date is between two other dates on the calendar .