Need to calculate a date before a given time (let it be 10 years) from current date, and don’t want to do this manually. Is there any default class or instance method for NSDate class which do this. I went through NSDate Class reference but unable to get the desired response.
If there’s no any then please suggest any proper way to achieve this.
This is an example I use for calculating
monthsBackworth of months, but you can substitute setMonth for setYear: