How to Set max Date in Text Input Component?
- 30 Jan 2023
- 1 Minute to read
- Contributors
- Print
- DarkLight
- PDF
How to Set max Date in Text Input Component?
- Updated on 30 Jan 2023
- 1 Minute to read
- Contributors
- Print
- DarkLight
- PDF
Article summary
Did you find this summary helpful?
Thank you for your feedback
To set max Date in a text input component of type 'Date', the user can use the logic displayed in the image:
In the above image, the onPageShow script of Homepage has set the 'max' property of the Date component to current date so that the future dates are disabled. The following image displays the output of the logic.
Note
It is important that the Date is of the format YYYY-MM-DD.
Was this article helpful?