An NSFormatter subclass to parse ISO 8601 strings into NSDate objects and format NSDate objects into ISO 8601 strings. It supports calendar, week, and ordinal date formats in both directions.

Official ISO8601DateFormatter web site
Official ISO8601DateFormatter repository