Instance Property

maximumDate

The maximum date that a date picker can show.

Declaration

var maximumDate: Date? { get set }

Discussion

Use this property to configure the maximum date that is 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

var minimumDate: Date?

The minimum date that a date picker can show.

var minuteInterval: Int

The interval at which the date picker should display minutes.

var countDownDuration: TimeInterval

The value displayed by the date picker when the mode property is set to show a countdown time.