NOTE. The answer to this question is already excellent in the JDK world here , but the accepted answer does not apply to the Android port JSR-310 , which does not have an extended date API.
So what is the best way to convert java.util.Dateto org.threeten.bp.LocalDate?
Date input = new Date();
LocalDate date = ???
source
share