Last active
September 5, 2020 10:07
-
-
Save team172011/797cfb2503c7a1c54db2030227d01fe4 to your computer and use it in GitHub Desktop.
java.time.ZonedDateTime to java.util.Date
This file contains 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.time.ZonedDateTime myZonedDateTime = java.time.ZonedDateTime.now(); | |
java.util.Date date = java.util.Date.from(myZonedDateTime.toInstant()); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment