Groovy web console

subscribe to the feed Subscribe
to this
site
SDF (via #groovywebconsole)
tweet this snippet Tweet
this
script

SDF

Published 4 years ago by Anonymous
Actions  ➤ Edit in console Back to console Show/hide line numbers View recent scripts
import java.text.SimpleDateFormat;

SimpleDateFormat outputFormat=new SimpleDateFormat("ww");
Date today=new Date();

println outputFormat.format(today);