Here you can find the source of toDate(final LocalDate localDate)
public static Date toDate(final LocalDate localDate)
//package com.java2s; import java.time.LocalDate; import java.time.LocalDateTime; import java.time.ZoneId; import java.util.Date; public class Main { /**//from w w w . j a v a 2 s .co m * Converts local date to Date. */ public static Date toDate(final LocalDate localDate) { return Date.from(localDate.atStartOfDay(ZoneId.systemDefault()).toInstant()); } /** * Converts local date time to Date. */ public static Date toDate(final LocalDateTime localDateTime) { return Date.from(localDateTime.atZone(ZoneId.systemDefault()).toInstant()); } }