264
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

2026-02-26 06-29-24
Rahul
 
MVP
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

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