code: public boolean isSameDate(CalendarDate date) {
          return getDayOfWeek() == date.getDayOfWeek()
              && getMonth() == date.getMonth()
              && getYear() == date.getYear()
              && getEra() == date.getEra();
      }
docs: Returns whether the specified date is the same date of this
  <code>CalendarDate</code>. The time of the day fields are
  ignored for the comparison.