Instance Method

allowsNaturalLanguage

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

Declaration

- (BOOL)allowsNaturalLanguage;

Return Value

YES if the receiver attempts to process dates entered as a vernacular string (“today,” “next week,” “dinner time,” and so on), otherwise NO.

Discussion

Natural-language processing supports only a limited set of colloquial phrases, primarily in English. It may give unexpected results, and its use is strongly discouraged.

Special Considerations

This method is for use with formatters using NSDateFormatterBehavior10_0 behavior.

See Also

Managing Natural Language Support

lenient

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

doesRelativeDateFormatting

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