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

# locale(_:)

Modifies the date format style to use the specified locale.

## Declaration

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

## Parameters

- `locale`: The locale to use when formatting a date.

## Return Value

Return Value A date format style with the provided locale.

## See Also

### Modifying a Date Format Style

- [timeZone](foundation/date/formatstyle/timezone.md)
- [calendar](foundation/date/formatstyle/calendar.md)
- [capitalizationContext](foundation/date/formatstyle/capitalizationcontext.md)
- [locale](foundation/date/formatstyle/locale.md)
