You're trying to calculate number of months, days, etc to year 2013. In NSDateComponents
0 means 'no value', all values that count should be greater than 0. That's why your comps
value is considered as 'incomplete', which causes strange output from NSCalendar
.
Set month
and day
in lines 3-4 to 1 fix the issue.