Groovy Convert Date To String, YEAR def date = new Date() def nextYear = date[YEAR] + 1 date.