Created
December 6, 2018 10:41
-
-
Save lizettepreiss/fb6942ab59c3007a9711c09c42971b58 to your computer and use it in GitHub Desktop.
Java 8 – Convert java.util.Date to java.time.LocalDate
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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