Here you can find the source of changeDateToLocalDate(Date value)
public static LocalDate changeDateToLocalDate(Date value)
//package com.java2s; //License from project: Open Source License import java.time.Instant; import java.time.LocalDate; import java.time.ZoneId; import java.time.ZonedDateTime; import java.util.Date; public class Main { public static LocalDate changeDateToLocalDate(Date value) { if (value == null || value.toInstant() == null) return null; Instant instant = value.toInstant(); ZonedDateTime zdt = instant.atZone(ZoneId.systemDefault()); LocalDate date = zdt.toLocalDate(); return date; }// w w w .ja v a 2 s .c o m }