Could anyone explain how to show last year and next year in a user macro. I tried to subtract and add but was not able to convert the string to an integer before the arithmetic operation
#set ($thisYear = $action.dateFormatter.formatGivenString("yyyy",$content.currentDate) )
#set ($lastYear = $thisYear - 1)
$lastYear