java convert java.util.Date to LocalDate

50

java convert java.util.Date to LocalDate -

Date yourDate = new Date(); // this will be your java.util.Date instance to convert
LocalDate date = yourDate.toInstant().atZone(ZoneId.systemDefault()).toLocalDate();

Comments

Submit
0 Comments