iOSDatePicker.MaximumDate

From Xojo Documentation

Property (As Date )
aiOSDatePicker.MaximumDate = newDateValue
or
DateValue = aiOSDatePicker.MaximumDate

Supported on Mobile (iOS).

The maximum date in the scrolling list. Applicable when Mode is Modes.Date or Modes.DateAndTime.

Notes

Dates after the maximum date still appear in the scrolling list, but cannot be selected.

Sample Code

Limit the maximum date to 50 years in the future:

Dim futureDate As Xojo.Core.Date
Dim interval As New Xojo.Core.DateInterval
interval.Years = 50
futureDate = Xojo.Core.Date.Now + interval
StartDatePicker.MaximumDate = futureDate