The way I am calculating the difference between of 2 dates is
NSCalendar *calendar = [[NSCalendar alloc] initWithCalendarIdentifier:NSGregorianCalendar];
NSDateComponents *nowAndEnd = [calendar components:NSMonthCalendarUnit|
NSDayCalendarUnit|
NSMinuteCalendarUnit
fromDate:now
toDate:end
options:0];
NSLog(@"nowAndEnd's day is %d",nowAndEnd.day);
NSLog(@"nowAndEnd's month is %d",nowAndEnd.month);
And I am getting back is
nowAndEnd's day is 15
nowAndEnd's month is 1
Question is how can I compute the days from those info. I am asking because some of months have 30 days and some of them have 31...