Instance Method

dateFromString:

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

Declaration

- (NSDate *)dateFromString:(NSString *)string;

Parameters

string

The ISO 8601 formatted string representation of a date.

Return Value

A date object, or nil if no valid date was found.

See Also

Converting ISO 8601 Dates

- stringFromDate:

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

+ stringFromDate:timeZone:formatOptions:

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

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