Groovy web console

subscribe to the feed Subscribe
to this
site

Week Number

Published 5 months ago by Judge22 with tags week
Actions  ➤ Edit in console Back to console Show/hide line numbers View recent scripts
date = new Date()

w = date.getAt(Calendar.WEEK_OF_YEAR)

ns = "s" + w

println(ns)