I am trying to display last year's date based on the current date. I used a layout calculation and tried using the following syntax but getting a parsing error -
_add_years(current_date,-1)
_add_years(Today(),-1)
Any ideas ?
The _add_years function needs a timestamp, not a date which Today returns. Try this instead: _add_years(date2timestamp(Today()),-1)
Thanks. That worked ! :)