Groovy web console

subscribe to the feed Subscribe
to this
site

Test

Published 2 months ago by Anonymous
Actions  ➤ Edit in console Back to console Show/hide line numbers View recent scripts
import java.text.SimpleDateFormat
SimpleDateFormat sf = new SimpleDateFormat("yyyyMMdd000000")
String ldapDate = sf.format(new Date()) + "Z"
out.println(ldapDate)