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

# calendar

The calendar to use when formatting relative dates.

## Declaration

```swift
var calendar: Calendar
```

## Discussion

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

## See Also

### Modifying a Relative Date Format Style

- [presentation](foundation/date/relativeformatstyle/presentation-swift.property.md)
- [unitsStyle](foundation/date/relativeformatstyle/unitsstyle-swift.property.md)
- [capitalizationContext](foundation/date/relativeformatstyle/capitalizationcontext.md)
- [locale](foundation/date/relativeformatstyle/locale.md)
- [locale(_:)](foundation/date/relativeformatstyle/locale(_:).md)
