LocalDate from past code example
Example: date to localdate
dateToConvert.toInstant()
.atZone(ZoneId.systemDefault())
.toLocalDate();
dateToConvert.toInstant()
.atZone(ZoneId.systemDefault())
.toLocalDate();