Created
January 3, 2019 07:37
-
-
Save kumbasar/8849bbc8d9f64b92ad7ccbded0fc4609 to your computer and use it in GitHub Desktop.
SimpleDateFormat in groovy
This file contains hidden or 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.text.SimpleDateFormat | |
def date = new Date() | |
sdf = new SimpleDateFormat("MMddyyyy-hhmmss") | |
println sdf.format(date) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Result: 01032019-083531