code: public static Date atEndOfDay(Date date) {
      LocalDateTime localDateTime = dateToLocalDateTime(date);
      LocalDateTime endOfDay = localDateTime.with(LocalTime.MAX);
      return localDateTimeToDate(endOfDay);
    }
docs: Returns the {@link Date} at the end of day of the given {@link Date}.
  
  <p>This returns a {@link Date} formed from the given {@link Date} at the time of 1 millisecond
  prior to midnight the next day.
  
  @return the {@link Date} at the end of day of the given {@link Date}j