---
title: isLenient
framework: foundation
role: symbol
role_heading: Instance Property
path: foundation/dateformatter/islenient
---

# isLenient

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

## Declaration

```swift
var isLenient: Bool { get set }
```

## Discussion

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

- [doesRelativeDateFormatting](foundation/dateformatter/doesrelativedateformatting.md)
