public/javascripts/yui/calendar/calendar.js
function(date, compareTo) {
        var ms = compareTo.getTime();
        if (date.getTime() < ms) {
            return true;
        } else {
            return false;
        }
    }
function(date, compareTo) {
        var ms = compareTo.getTime();
        if (date.getTime() < ms) {
            return true;
        } else {
            return false;
        }
    }
function ( date , compareTo ) { var ms = compareTo . getTime ( ) ; if ( date . getTime ( ) < ms ) { return true ; } else { return false ; } }
Determines whether a given date is before another date on the calendar.
@method before
@param {Date} date  The Date object to compare with the compare argument
@param {Date} compareTo The Date object to use for the comparison
@return {Boolean} true if the date occurs before the compared date; false if not.
Determines whether a given date is before another date on the calendar .