Skip to content

Instantly share code, notes, and snippets.

@lizettepreiss
Created December 6, 2018 10:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lizettepreiss/fb6942ab59c3007a9711c09c42971b58 to your computer and use it in GitHub Desktop.
Save lizettepreiss/fb6942ab59c3007a9711c09c42971b58 to your computer and use it in GitHub Desktop.
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