code: static void setMidnight(Calendar cal) {
      cal.set(HOUR_OF_DAY, 0);
      cal.set(MINUTE, 0);
      cal.set(SECOND, 0);
      cal.set(MILLISECOND, 0);
    }
docs: Clears out the hours/minutes/seconds/millis of a Calendar.