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

# formatted(_:)

Formats the date range using the specified style.

## Declaration

```swift
func formatted<S>(_ style: S) -> S.FormatOutput where S : FormatStyle, S.FormatInput == Range<Date>
```
