List of utility methods to do LocalDate to Date
Date | convertToDate(LocalDate localDate) convert To Date return Date.from(localDate.atStartOfDay(ZoneId.systemDefault()).toInstant());
|
Date | date(LocalDate d, ZoneId zone) date return Date.from(d.atStartOfDay().atZone(zone).toInstant());
|
String | date(LocalDate date) Converts a date to a string. return date.format(DATE_FORMAT);
|
String | date(LocalDate date) date return dateFormatter.format(date);
|
Date | date(LocalDate date) date return date(date, DEFAULT_CLOCK);
|
Date | localDateToDate(LocalDate date) local Date To Date Date value;
Instant instant = Instant.from(date.atStartOfDay(DEFAULT_ZONE));
value = Date.from(instant);
return value;
|
Date | localDateToDate(LocalDate ld) local Date To Date return Date.from(ld.atStartOfDay(ZoneId.systemDefault()).toInstant());
|
Date | toDate(final LocalDate localDate) Converts local date to Date. return Date.from(localDate.atStartOfDay(ZoneId.systemDefault()).toInstant());
|
Date | toDate(LocalDate date) to Date return date != null ? Date.from(date.atStartOfDay().atZone(ZoneId.systemDefault()).toInstant()) : null;
|
Date | toDate(LocalDate finalProjectDate, ZoneId zone) to Date return Date.from(finalProjectDate.atStartOfDay().atZone(zone).toInstant());
|