Class

NSISO8601DateFormatter

The NSISO8601DateFormatter class generates and parses string representations of dates following the ISO 8601 standard. Use this class to create ISO 8601 representations of dates and create dates from text strings in ISO 8601 format.

Symbols

Configuring the Formatter

formatOptions

Options for generating and parsing ISO 8601 date representations. See NSISO8601DateFormatOptions for possible values.

timeZone

The time zone used to create and parse date representations. When unspecified, GMT is used.

Creating ISO 8601 Date Formatters

- init

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

Converting ISO 8601 Dates

- stringFromDate:

Creates and returns an ISO 8601 formatted string representation of the specified date.

- dateFromString:

Creates and returns a date object from the specified ISO 8601 formatted string representation.

+ stringFromDate:timeZone:formatOptions:

Creates a representation of the specified date with a given time zone and format options.

Constants

NSISO8601DateFormatOptions

Options used to generate and parse ISO 8601 date representations.

Relationships

Inherits From

Conforms To