From Xojo Documentation

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

Supported on Mobile (iOS).

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


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:

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