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.