code: public static boolean sameDay(ZonedDateTime d1, ZonedDateTime d2) {
      DateTimeField field = greatestDifference(d1, d2);
      return (field != YEAR && field != MONTH && field != DAY);
    }
docs: Returns a boolean indicating the two date times are on the same day.