---
title: maximumDate
framework: uikit
role: symbol
role_heading: Instance Property
path: uikit/uidatepicker/maximumdate
---

# maximumDate

The maximum date that a date picker can show.

## Declaration

```swift
var maximumDate: Date? { get set }
```

## Discussion

Discussion Use this property to configure the maximum date that’s selected in the date picker interface. The property contains an NSDate object or nil (the default), which means no maximum date. This property, along with the minimumDate property, lets you specify a valid date range. If the minimum date value is greater than the maximum date value, both properties are ignored. The minimum and maximum dates are also ignored in the countdown-timer mode (UIDatePicker.Mode.countDownTimer).

## See Also

### Configuring temporal attributes

- [minimumDate](uikit/uidatepicker/minimumdate.md)
- [minuteInterval](uikit/uidatepicker/minuteinterval.md)
- [countDownDuration](uikit/uidatepicker/countdownduration.md)
- [roundsToMinuteInterval](uikit/uidatepicker/roundstominuteinterval.md)
