Instance Method

init

Initializes an ISO 8601 date formatter with default format, time zone, and options.

Declaration

- (instancetype)init;

Discussion

By default, a formatter is initialized to use the GMT time zone, the RFC 3339 standard format ("yyyy-MM-dd'T'HH:mm:ssZZZZZ"), and the following options: NSISO8601DateFormatWithInternetDateTime, NSISO8601DateFormatWithDashSeparatorInDate, NSISO8601DateFormatWithColonSeparatorInTime, and NSISO8601DateFormatWithTimeZone.

This is the designated initializer.