Skip to content

Instantly share code, notes, and snippets.

@tachesimazzoca
Last active October 10, 2015 02:18
Show Gist options
  • Save tachesimazzoca/3617437 to your computer and use it in GitHub Desktop.
Save tachesimazzoca/3617437 to your computer and use it in GitHub Desktop.
Date format #scala
import java.util.Date
// Use StringLike#format
println("%tY-%<tm-%<td %<tH:%<tM:%<tS".format(new Date()))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment