Groovy web console

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

Get Current year

Published 3 months ago by vikasht with tags date
Actions  ➤ Edit in console Back to console Show/hide line numbers View recent scripts
Date now = new Date(); 
int year = now.getYear() + 1900;