Java LocalDate Calculate atEndOfDay(LocalDate date)

Here you can find the source of atEndOfDay(LocalDate date)

Description

Returns a LocalDateTime that represents the time just before the start of the next day.

License

BSD License

Declaration

public static LocalDateTime atEndOfDay(LocalDate date) 

Method Source Code

//package com.java2s;
//License from project: BSD License 

import java.time.*;

public class Main {
    /**/*from  w ww .  j a  v a 2s  .co m*/
     * Returns a LocalDateTime that represents the time just before the start of the next day.
     */
    public static LocalDateTime atEndOfDay(LocalDate date) {
        return date.atTime(23, 59, 59, 999999999);
    }
}

Related

  1. adjustDate(final LocalDate contextDate, String str, final boolean add)
  2. asDate(LocalDate date)
  3. asEpochMilli(final LocalDate localDate)
  4. before(final LocalDate d1, final LocalDate d2)
  5. calcNextDayOfWeek(LocalDate d, DayOfWeek dow)
  6. calculateAge(LocalDate birthDate, LocalDate currentDate)
  7. changeDateToLocalDate(Date value)