Instance Method

stringForObjectValue:

Returns a formatted string based on the date information in the specified object.

Declaration

- (NSString *)stringForObjectValue:(id)obj;

Parameters

obj

An object containing the date and time information to format. The object in this parameter must be a NSDateComponents object; if it is not, the method raises an exception. This parameter must not be nil.

Return Value

A formatted string representing the specified date information.

Discussion

This method has the same behavior as the stringFromDateComponents: method.

See Also

Formatting Values

- stringFromDateComponents:

Returns a formatted string based on the specified date component information.

- stringFromDate:toDate:

Returns a formatted string based on the time difference between two dates.

- stringFromTimeInterval:

Returns a formatted string based on the specified number of seconds.

+ localizedStringFromDateComponents:unitsStyle:

Returns a localized string based on the specified date components and style option.