MobileDateTimePicker.MaximumDate

From Xojo Documentation

Property (As DateTime )
aMobileDateTimePicker.MaximumDate = newDateTimeValue
or
DateTimeValue = aMobileDateTimePicker.MaximumDate

Supported on Mobile.

The maximum selectable date.

Notes

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

Sample Code

Set the maximum date to 50 years in the future:

Var futureDate As DateTime
Var interval As New DateInterval
interval.Years = 50
futureDate = DateTime.Now + interval
StartDatePicker.MaximumDate = futureDate

See Also

DateTime class, MinimumDate property.