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
2010-06-01 22:22:14
thank you eman I will take a look again.
arashaga
2010-06-01 22:44:52
thank you very much.
arashaga
2010-06-10 15:26:05