Here you can find the source of getDateStart(LocalDate localDate)
public static Date getDateStart(LocalDate localDate)
//package com.java2s; //License from project: Apache License import java.time.*; import java.util.Date; public class Main { public static Date getDateStart(LocalDate localDate) { LocalDateTime localDateTime = localDate.atStartOfDay(); ZonedDateTime zonedDateTime = localDateTime.atZone(ZoneId.of("Asia/Shanghai")); return Date.from(zonedDateTime.toInstant()); }//from w w w . j a v a 2 s . com }