---
title: doesRelativeDateFormatting
framework: foundation
role: symbol
role_heading: Instance Property
path: foundation/dateformatter/doesrelativedateformatting
---

# doesRelativeDateFormatting

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

## Declaration

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

## Discussion

Discussion true if the receiver uses relative date formatting, otherwise false. If a date formatter uses relative date formatting, where possible it replaces the date component of its output with a phrase—such as “today” or “tomorrow”—that indicates a relative date. The available phrases depend on the locale for the date formatter; whereas, for dates in the future, English may only allow “tomorrow,” French may allow “the day after the day after tomorrow,” as illustrated in the following example.

## See Also

### Managing Natural Language Support

- [isLenient](foundation/dateformatter/islenient.md)
