156
Views
3
Comments
Solved
Validation: date selector – any date earlier than 18 years ago cannot be selected
Question

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?

2019-05-22 11-30-09
Marcelo Ferreira
Solution

Hi,

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

Regards,

Marcelo

2019-08-31 06-59-55
YS

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.

2018-11-05 02-29-37
Jay Santos

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

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.