Last active
October 10, 2015 02:18
-
-
Save tachesimazzoca/3617437 to your computer and use it in GitHub Desktop.
Date format #scala
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.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