Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Java 8 – Convert java.util.Date to java.time.LocalDate
java.util.Date d = new java.util.Date();
java.time.LocalDate localDate = d.toInstant().atZone(ZoneId.systemDefault()).toLocalDate();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.