Groovy web console

subscribe to the feed Subscribe
to this
site

Thierry

Published 1 month ago by Biggy with tags Timezone
Actions  ➤ Edit in console Back to console Show/hide line numbers View recent scripts
def present = new Date()
def tz = TimeZone.getTimeZone('GMT')
def dateFormat = "yyyy-MM-dd'T'HH:mm" 
def dateWithTZ= present.format(dateFormat)

println(dateWithTZ)