Instance Property

isLenient

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

Declaration

var isLenient: Bool { get set }

Discussion

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

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

var doesRelativeDateFormatting: Bool

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