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