nscalendar

iPhone SDK, how to get NSDate object of coming friday's 20:00 ?

Does anyone know how to get the NSDate of the coming friday's 20:00 ? ...

NSDateComponents incorrectly reporting day

Hi all, I have a feeling this is due to some time zone not being set or something this is what I have: NSDateComponents *theComponents = [calendar components:(NSYearCalendarUnit | NSMonthCalendarUnit | NSDayCalendarUnit) fromDate:workingDate]; NSLog(@"%d", theComponents.day); [theComponents setDay:3]; NSLog(@"%d", theComponents.day); se...

Create an NSMutableArray using NSCalendar

Hi, I have following problem: I need to create an NSMutabeArray with every weekday after a specific date. This should look like: Thursday 28 october 2010 Thursday 04 october 2010 Thursday 11 october 2010 ... How can I do that? I think it has something to do with NSCalendar, but I can't find the right solution... Could you help me? ...