---
title: availableDateRange
framework: uikit
role: symbol
role_heading: Instance Property
path: uikit/uicalendarview/availabledaterange
---

# availableDateRange

The range of dates that the calendar view displays.

## Declaration

```swift
var availableDateRange: DateInterval { get set }
```

## Discussion

Discussion Set availableDateRange to restrict the earliest or latest dates that the calendar view displays. The default date range starts with distantPast (Swift) or distantPast (Objective-C), and ends with distantFuture (Swift) or distantFuture (Objective-C).

## See Also

### Setting the visible date and range

- [visibleDateComponents](uikit/uicalendarview/visibledatecomponents.md)
- [setVisibleDateComponents(_:animated:)](uikit/uicalendarview/setvisibledatecomponents(_:animated:).md)
