Here you can find the source of atEndOfDay(LocalDate date)
public static LocalDateTime atEndOfDay(LocalDate date)
//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); } }