Created
June 16, 2020 18:49
-
-
Save yenerm/f291f5e682ee3a033de83fc7b03588f1 to your computer and use it in GitHub Desktop.
LocalDate and LocalTime
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
// Current date | |
LocalDate date = LocalDate.now(); | |
// Current time | |
LocalTime time = LocalTime.now(); | |
// Date of Android 11 beta launch | |
LocalDate date2 = LocalDate.of(2020, 6, 10); //yyyy,MM,dd |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment