So I have a macro that will subtract a number of days from today's date, is there a way of having an input that determines the numbers of days to be subtracted i.e Macro(5) would subtract 5 days from today, macro(12) would be todays date minus 12 days etc.
here is the hardcoded date marco:
#set ( $date = $action.dateFormatter.calendar )
$date.setTime($content.currentDate)
$date.add(6, -3)
<time datetime="$action.dateFormatter.formatGivenString('yyyy-MM-dd', $date.time)"/>