开发者

Add number of days to a date and calculate the end date?

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 tha开发者_StackOverflowt regards.


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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜