Groovy web console

subscribe to the feed Subscribe
to this
site

Compare dates

Published 2 years ago by Valentin
Actions Execute script  ▶ Edit in console Back to console Show/hide line numbers View recent scripts
Date d2 = new Date()
Date d1 = new Date()

boolean b = d1.before(d2)

print b