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

# generatesCalendarDates

Indicates whether the formatter generates the deprecated calendar date type.

## Declaration

```swift
var generatesCalendarDates: Bool { get set }
```

## Discussion

Discussion This property is true if the formatter generates the deprecated NSCalendarDate type, and is false otherwise. You should use Date and Calendar rather than NSCalendarDate.
