Here you can find the source of toDate(LocalDate localDate)
public static Date toDate(LocalDate localDate)
//package com.java2s; /*/* www . j a va 2s.c om*/ * License GNU LGPL * Copyright (C) 2012 Amrullah <amrullah@panemu.com>. */ import java.time.Instant; 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) { if (localDate == null) { return null; } Instant instant = localDate.atStartOfDay() .atZone(ZoneId.systemDefault()).toInstant(); Date date = Date.from(instant); return date; } public static Date toDate(LocalDateTime localDateTime) { if (localDateTime == null) { return null; } Instant instant = localDateTime.atZone(ZoneId.systemDefault()) .toInstant(); Date date = Date.from(instant); return date; } }