---
title: locale
framework: foundation
role: symbol
role_heading: Instance Property
path: foundation/date/intervalformatstyle/locale
---

# locale

The locale for formatting the date and time interval components.

## Declaration

```swift
var locale: Locale
```

## Discussion

Discussion The default value is autoupdatingCurrent. If you set this property to nil, the formatter resets to use autoupdatingCurrent.

## See Also

### Specifying Date Interval Format Styles

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