Current Week Start and End Date
问题 I want to get the current week start and end date and I also want to use the previous week start and end date and next week of the start and end date in current month. Thanks in Advance. 回答1: rangeOfUnit:startDate:interval:forDate:. It gives you the start and the interval for a certain time unit. With it it is easy to find the start of the week in the used calendar and add the range-1 to get the latest second in that week. NSCalendar *cal = [NSCalendar currentCalendar]; NSDate *now = [NSDate