A-M baby
This commit is contained in:
parent
764da6cbbb
commit
db842d013d
19005 changed files with 197040 additions and 7 deletions
2
Task/Date-format/Groovy/date-format-1.groovy
Normal file
2
Task/Date-format/Groovy/date-format-1.groovy
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
def isoFormat = { date -> date.format("yyyy-MM-dd") }
|
||||
def longFormat = { date -> date.format("EEEE, MMMM dd, yyyy") }
|
||||
3
Task/Date-format/Groovy/date-format-2.groovy
Normal file
3
Task/Date-format/Groovy/date-format-2.groovy
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
def now = new Date()
|
||||
println isoFormat(now)
|
||||
println longFormat(now)
|
||||
Loading…
Add table
Add a link
Reference in a new issue