Instance Property

lenient

A Boolean value that indicates whether the receiver uses heuristics when parsing a string.

Declaration

@property(getter=isLenient) BOOL lenient;

Discussion

YES if the receiver has been set to use heuristics when parsing a string to guess at the date which is intended, otherwise NO.

If a formatter is set to be lenient, when parsing a string it uses heuristics to guess at the date which is intended. As with any guessing, it may get the result date wrong (that is, a date other than that which was intended).

See Also

Managing Natural Language Support

- allowsNaturalLanguage

Returns a Boolean value that indicates whether the receiver attempts to process dates entered as a vernacular string.

Deprecated
doesRelativeDateFormatting

A Boolean value that indicates whether the receiver uses phrases such as “today” and “tomorrow” for the date component.