Here you can find the source of toDate(LocalDate localDate)
public static Date toDate(LocalDate localDate)
//package com.java2s; import com.google.common.base.Preconditions; import java.time.LocalDate; import java.time.LocalDateTime; import java.time.ZoneId; import java.util.Date; public class Main { public static Date toDate(LocalDate localDate) { Preconditions.checkNotNull(localDate, "localDate should't be null"); return Date.from(localDate.atStartOfDay().atZone(ZoneId.systemDefault()).toInstant()); }/*from w ww . ja va 2 s. co m*/ public static Date toDate(LocalDateTime localDateTime) { Preconditions.checkNotNull(localDateTime, "localDateTime should't not be null"); return Date.from(localDateTime.atZone(ZoneId.systemDefault()).toInstant()); } }