Groovy web console

subscribe to the feed Subscribe
to this


Published 3 months ago by Pable
Actions  ➤ Edit in console Back to console Show/hide line numbers View recent scripts
import java.text.SimpleDateFormat

SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss'Z'")

Date a = format.parse("2019-06-21T13:30:00Z")
Date now = new Date()

println now

println a

println now < a