Monday, June 27, 2016

Date in Groovy

import java.text.DateFormat
def today = new Date()
log.info today.format("dd-MM-yyyy H:mm a")
def endDate=today+1
log.info endDate.format("dd-MM-yyyy H:mm a")

No comments:

Post a Comment