---
title: locale
framework: uikit
role: symbol
role_heading: Instance Property
path: uikit/uidatepicker/locale
---

# locale

The locale used by the date picker.

## Declaration

```swift
var locale: Locale? { get set }
```

## Discussion

Discussion The default value is the current locale as returned by the current property of NSLocale, or the locale used by the date picker’s calendar. Locales encapsulate information about facets of a language or culture, such as the way dates are formatted.

## See Also

### Managing the date and calendar

- [calendar](uikit/uidatepicker/calendar.md)
- [date](uikit/uidatepicker/date.md)
- [setDate(_:animated:)](uikit/uidatepicker/setdate(_:animated:).md)
- [timeZone](uikit/uidatepicker/timezone.md)
