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

# calendar

The calendar to use for date values.

## Declaration

```swift
var calendar: Calendar! { get set }
```

## Discussion

Discussion The default value of this property is the calendar associated with the current locale object. You can change this value to use a different calendar for interpreting dates.

## See Also

### Configuring the Formatter Options

- [dateStyle](foundation/dateintervalformatter/datestyle.md)
- [timeStyle](foundation/dateintervalformatter/timestyle.md)
- [dateTemplate](foundation/dateintervalformatter/datetemplate.md)
- [locale](foundation/dateintervalformatter/locale.md)
- [timeZone](foundation/dateintervalformatter/timezone.md)
