Here you can find the source of toDate(LocalDate localDate)
public static Date toDate(LocalDate localDate)
//package com.java2s; //License from project: Apache License import java.sql.Date; import java.time.LocalDate; import java.time.ZoneOffset; public class Main { public static Date toDate(LocalDate localDate) { if (localDate == null) { return null; }// w w w .j ava2 s .com return new Date(Date.from(localDate.atStartOfDay(ZoneOffset.systemDefault()).toInstant()).getTime()); } }