code: function(date, compareTo) {
          var ms = compareTo.getTime();
          if (date.getTime() < ms) {
              return true;
          } else {
              return false;
          }
      }
docs: 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.