---
title: formatted()
framework: swift
role: symbol
role_heading: Instance Method
path: swift/range/formatted()
---

# formatted()

Formats the date range as an interval.

## Declaration

```swift
func formatted() -> String
```
