Here you can find the source of date(LocalDate date)
public static Date date(LocalDate date)
//package com.java2s; //License from project: Open Source License import java.time.Clock; import java.time.LocalDate; import java.time.LocalDateTime; import java.util.Date; public class Main { private static final Clock DEFAULT_CLOCK = Clock.systemUTC(); /**/*from ww w . ja v a 2s. com*/ * @return passed in local date time converted to date using the provided clock */ public static Date date(LocalDateTime date, Clock clock) { return Date.from(date.atZone(clock.getZone()).toInstant()); } /** * @return passed in local date time converted to date using the default clock */ public static Date date(LocalDateTime date) { return date(date, DEFAULT_CLOCK); } /** * @return passed in local date converted to date using the provided clock */ public static Date date(LocalDate date, Clock clock) { return Date.from(date.atStartOfDay().atZone(clock.getZone()).toInstant()); } /** * @return passed in local date converted to date using the default clock */ public static Date date(LocalDate date) { return date(date, DEFAULT_CLOCK); } }