Setting a year date range allows you to define the date range and parameters which can be selected by the user using the date picker. The following validation can be set:-
- Valid Date
- Date between
- Days from now
- Months from now
- Years from now
Key Objectives
Setting the date range
Pre-Requisites
- Basics
- Forms
- Administration
Setting the date range
In this example, the date picker will be configured to display years for up to 100 years past.
Go to Administration > Forms
Select the date item which you want to set.
Go to the validation region.
Select Years from now.
Provide a Minimum and Maximum Value. So Minimum is the value before today’s date, so to display Years up to 100 years before, set this to 100. The maximum value is the value after today’s date so it will display the years in the future.
This also applies to the validation Types
- Days from now
- Months from now
- Years from now
Further examples
Today's date | Units | Min Value | Displays | Max Value | Displays |
---|---|---|---|---|---|
20/12/2018 | Years | 90 | 1928 | -18 | 2000 |
21/12/2018 | Days | -28 | 18/01/2019 | 365 | 21/12/2019 |
Was this article helpful?
That’s Great!
Thank you for your feedback
Sorry! We couldn't be helpful
Thank you for your feedback
Feedback sent
We appreciate your effort and will try to fix the article