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

# calendar

The calendar used to interpret the date components.

## Declaration

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

## Discussion

Discussion See Calendars, Date Components, and Calendar Units in Date and Time Programming Guide.

## See Also

### Setting a Calendar and Time Zone

- [timeZone](foundation/nsdatecomponents/timezone.md)
