How would I add only business days to an NSDate?
问题 I have an issue related to calculating business days in Objective-C. I need to add X business days to a given NSDate . For example, if I have a date: Friday 22-Oct-2010 , and I add 2 business days, I should get: Tuesday 26-Oct-2010 . Thanks in advance. 回答1: There are two parts to this: Weekends Holidays I'm going to pull from two other posts to help me out. For weekends, I'm going to need to know a given date's day of the week. For that, this post comes in handy: How to check what day of the