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.ZoneId; import java.time.ZonedDateTime; import java.util.Date; public class Main { public static final ZoneId DEFAULT_ZONEID = ZoneId.systemDefault(); public static Date toDate(LocalDateTime dateTime) { if (dateTime == null) { return null; }/* w w w. j a v a 2s . co m*/ ZonedDateTime zonedDateTime = dateTime.atZone(DEFAULT_ZONEID); return Date.from(zonedDateTime.toInstant()); } public static Date toDate(LocalDate localDate) { if (localDate == null) { return null; } ZonedDateTime zonedDateTime = localDate.atStartOfDay(DEFAULT_ZONEID); return Date.from(zonedDateTime.toInstant()); } public static Date toDate(ZonedDateTime dateTime) { if (dateTime == null) { return null; } return Date.from(dateTime.toInstant()); } }