Created
April 25, 2019 12:19
-
-
Save takashima0411/714e079f68895114a89cb0b92d0e2e62 to your computer and use it in GitHub Desktop.
jShell compatible
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
import java.time.LocalDate | |
import java.time.format.DateTimeFormatter | |
var dtf = DateTimeFormatter.ofPattern("YYYY-MM-dd") | |
var today = LocalDate.now() | |
System.out.println(dtf.format(today)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment