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.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software