---
title: "locale(_:)"
framework: foundation
role: symbol
role_heading: Instance Method
path: "foundation/date/intervalformatstyle/locale(_:)"
---

# locale(_:)

Modifies the date interval format style to use the specified locale.

## Declaration

```swift
func locale(_ locale: Locale) -> Date.IntervalFormatStyle
```

## Parameters

- `locale`: The locale for formatting a date interval.

## Return Value

Return Value A date inteverval format style with the provided locale.

## See Also

### Specifying Date Interval Format Styles

- [timeZone(_:)](foundation/date/intervalformatstyle/timezone(_:).md)
- [calendar](foundation/date/intervalformatstyle/calendar.md)
- [locale](foundation/date/intervalformatstyle/locale.md)
- [timeZone](foundation/date/intervalformatstyle/timezone.md)
