---
title: calendar
framework: foundation
role: symbol
role_heading: Instance Property
path: foundation/locale/components/calendar
---

# calendar

The calendar used by the locale.

## Declaration

```swift
var calendar: Calendar.Identifier?
```

## Discussion

Discussion Set this property to override the locale’s default calendar. To request the default calendar used by the locale, use the Locale property calendar. This property corresponds to the ca key of the Unicode BCP 47 extension.

## See Also

### Specifying date and time components

- [Calendar.Identifier](foundation/calendar/identifier-swift.enum.md)
- [firstDayOfWeek](foundation/locale/components/firstdayofweek.md)
- [Locale.Weekday](foundation/locale/weekday.md)
- [hourCycle](foundation/locale/components/hourcycle.md)
- [Locale.HourCycle](foundation/locale/hourcycle-swift.enum.md)
- [timeZone](foundation/locale/components/timezone.md)
