13
Views
1
Comments
Solved
Input date and date picker issue 
Question

Hello, 

How to disable the last 5 years in input date or date picker. User need to select his birthday date but above the age of 5 can anyone suggest me how to do it in mobile application.


Thank you

Rank: #90
Solution

Hi Priya

You can use "max" property for input date like below image-

Use syntax 

SyntaxEditor Code Snippet

FormatDateTime(NewDate(2015,1,1),"yyyy-MM-dd")

You can modify date accordingly like

SyntaxEditor Code Snippet

FormatDateTime(NewDate(AddYears(currdate(),-5),1,1),"yyyy-MM-dd")

Use same for DatePicker.


Hope this will help you.

Regards

Rahul Sahu