Here you can find the source of asDate(LocalDate date)
public static Date asDate(LocalDate date)
//package com.java2s; //License from project: Apache License import java.time.*; import java.util.Date; public class Main { public static Date asDate(LocalDate date) { Instant instant = date.atStartOfDay() .atZone(ZoneId.systemDefault()).toInstant(); return Date.from(instant); }//w ww . j ava 2 s. co m public static Date asDate(LocalDateTime date) { Instant instant = date.atZone(ZoneId.systemDefault()).toInstant(); return Date.from(instant); } }