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

# calendar

The calendar for the receiver.

## Declaration

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

## Discussion

Discussion If unspecified, the logical calendar for the current user is used.

## See Also

### Managing Attributes

- [defaultDate](foundation/dateformatter/defaultdate.md)
- [locale](foundation/dateformatter/locale.md)
- [timeZone](foundation/dateformatter/timezone.md)
- [twoDigitStartDate](foundation/dateformatter/twodigitstartdate.md)
- [gregorianStartDate](foundation/dateformatter/gregorianstartdate.md)
