I'm looking to get the current month in an integer. ie 0 - 11. I've spend quite bit of time on apples dev site for NSCalendarDate, but to no avail. Much frustration. Any help would be appreciated.
Thanx
Thanx
NSCalender *cal = [NSCalendar autoupdatingCurrentCalendar];
NSDateComponents *comps = [cal components: NSMonthCalendarUnit fromDate:[NSDate date]];
NSInteger month = [comps month];
NSCalendarDate *now = [NSCalendarDate calendarDate];
int i = [now monthOfYear];