Java Utililty Methods Date to LocalDate

List of utility methods to do Date to LocalDate

Description

The list of methods to do Date to LocalDate are organized into topic(s).

Method

LocalDateasLocalDate(Date date)
as Local Date
return asLocalDateTime(date).toLocalDate();
LocalDateasLocalDate(final Date date)
Converts a Date into a LocalDate using the default timezone.
if (date != null) {
    return asLocalDate(date.getTime());
return null;
LocalDatedateToLocalDate(Date d)
date To Local Date
return d.toInstant().atZone(ZoneId.systemDefault()).toLocalDate();