I have a date in Date and I want to pass it to LocalDate:
Date fechaAntigua = new Date();
LocalDate fechaNueva = new LocalDate();
fechaNueva = fechaAntigua ...?
I have a date in Date and I want to pass it to LocalDate:
Date fechaAntigua = new Date();
LocalDate fechaNueva = new LocalDate();
fechaNueva = fechaAntigua ...?
Test:
Extracted from SO: convert-java-util-date-to-java-time-localdate
It can be obtained by the LocalDate class via toInstant() :
Explanation of each library along with the functionality that each one fulfills within the program.