Here you can find the source of toDate(LocalDate localDate)
public static Date toDate(LocalDate localDate)
//package com.java2s; //License from project: Open Source License import java.time.LocalDate; import java.time.LocalDateTime; import java.time.LocalTime; import java.time.ZoneId; import java.util.Date; public class Main { public static Date toDate(LocalDateTime localDateTime) { return Date.from(localDateTime.atZone(ZoneId.systemDefault()).toInstant()); }/*from w w w.ja v a 2 s.c om*/ public static Date toDate(LocalDate localDate) { return toDate(localDate.atStartOfDay()); } public static Date toDate(LocalTime localTime) { return toDate(LocalDate.ofEpochDay(0L).atTime(localTime)); } }