views:

55

answers:

1

How can I calculate the number of days from a specific date?in other words add number of days to a date. I looked up NSCalendar and NSdate and could not find anything specific to that regards.

+4  A: 

You can use -[NSCalendar components:fromDate:toDate:options:] to compare dates, or -[NSCalendar dateByAddingComponents:toDate:options:] to find a date that is a certain number of days from another date.

eman
thank you eman I will take a look again.
arashaga
thank you very much.
arashaga