get localdatetime from date java code example
Example 1: date to localdate
dateToConvert.toInstant()
.atZone(ZoneId.systemDefault())
.toLocalDate();
Example 2: how to parse a specific datetime to localdatetime
LocalDateTime date = LocalDateTime.parse("1995-07-25T15:03:45");