Skip to content

Instantly share code, notes, and snippets.

@takashima0411
Created April 25, 2019 12:19
Show Gist options
  • Save takashima0411/714e079f68895114a89cb0b92d0e2e62 to your computer and use it in GitHub Desktop.
Save takashima0411/714e079f68895114a89cb0b92d0e2e62 to your computer and use it in GitHub Desktop.
jShell compatible
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