Validation: date selector – any date earlier than 18 years ago cannot be selected

How do you ensure that user can only be 18 years old and above? How do you manipulate the date selector such that any date earlier than <18 years ago from CurrDate()> cannot be selected?

Solution

Hi,

The datapicker has a property called MinDate that you can use to accomplish that:

Regards,

Marcelo

Solution

Is this for a mobile or web app? What widget are you using?

Marcelo Ferreira wrote:

Hi,

The datapicker has a property called MinDate that you can use to accomplish that:

Regards,

Marcelo


I think MaxDate works for me instead.