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

# calendar

The calendar to use when formatting the date.

## Declaration

```swift
var calendar: Calendar
```

## Discussion

Discussion Defaults to autoupdatingCurrent. If you set this property to nil, the formatter resets to using autoupdatingCurrent.

## See Also

### Modifying a Date Format Style

- [locale(_:)](foundation/date/formatstyle/locale(_:).md)
- [timeZone](foundation/date/formatstyle/timezone.md)
- [capitalizationContext](foundation/date/formatstyle/capitalizationcontext.md)
- [locale](foundation/date/formatstyle/locale.md)
