You need to use yyyy, not YYYY. The first is the regular year number (with respect to the configured calendar) and the second is for week-based calendar year.
See this detailed article on how to use NSDateFormatter, and the distinction between the two.