Groovy web console

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

rajat

Published 2 months ago by Anonymous
Actions  ➤ Edit in console Back to console Show/hide line numbers View recent scripts
lEndDate = 1488878149000
lGracePeriod = 0
warningDays= 30
def currentDate = new Date()
def endDate = new Date(lEndDate)
def graceDate = new Date(lEndDate).plus(lGracePeriod)
def warningDate = new Date(lEndDate).minus(warningDays)
print "currentDate $currentDate \n"
print "warningDate $warningDate \n"
print "endDate $endDate \n"
print "graceDate $graceDate \n"