How to calculate the date(Date and Time type)

0
I want to calculate minus 1 year from a Date type date.   before :Date(YYYY) (date and  time type) after: Date(YYYY) -1year (date and  time type)   this is Error .
asked
1 answers
2

Hi ,

Use this addYears($inputdate,-1)

 

Good luck!

answered