Following are two methods that you can use to create an NSDate object based on a number of days in the future or past, from an existing date. For example, you can determine the date 30 days from today.
The code to determine a date in the future follows:
I recently had a need to determine the number of days between two dates. Given the abundance of date related support in CocoaTouch, it is a pretty simple process, the biggest challenge is to know which frameworks and methods to call.
One approach to determine the number of days is shown below: