Instance Method

stringFromDate:

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

Declaration

- (NSString *)stringFromDate:(NSDate *)date;

Parameters

date

The date to be represented.

Return Value

A user-readable string representing the date.

See Also

Converting ISO 8601 Dates

- 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.