Created
April 14, 2022 08:35
-
-
Save ahndmal/166fdd78a851de00d8719293453cc00f to your computer and use it in GitHub Desktop.
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
| public static LocalDate toLocalDate(Date date) { | |
| return date == null ? null : date.toInstant().atZone(ZoneId.systemDefault()).toLocalDate(); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment