NSDateComponents
is only a simple container for its elements. The magic happens in NSCalendar
's methods that calculate NSDate
objects.
So convert the components to a proper date and than back to an NSDateComponents
.
Since you can't calculate the week of year from a year, month and weekOfMonth (there are usually two week-of-years in one week-of-month) you have to select a day for which to check, for example monday.