Maybe I am missing something but when I put in;
NSCalendar * cal = [NSCalendar currentCalendar];
NSInteger day = [cal ordinalityOfUnit:NSCalendarCalendarUnit inUnit:NSMonthCalendarUnit forDate: now];
NSLog(@“The day is %lu of the month”, day);
I get the following output which does not much look like the day;
2012-07-15 10:35:30.619 TimeAfterTime2[1920:403] The day is 9223372036854775807 of the month
Is this the correct output and if so, would you enlighten a “foggy brain”.