Groovy web console

subscribe to the feed Subscribe
to this
site

Its broken

Published 3 months ago by ptaenzer
Actions Execute script  ▶ Edit in console Back to console Show/hide line numbers View recent scripts
def str = new java.util.Date().toString()
println(str)
def back = new java.text.SimpleDateFormat('yyy-MM-dd').parse(str)
println(back)