How do I set max date or add a limit to the Datepicker Widget?

Is there any way to restrict/disable date-picker inputs to a certain date on Appsmith?

The inputs on the Datepicker widget can be restricted using the Max Date and Min Date properties. You can also dynamically set them by using JS and function from moment.js.

Now say, you want to take inputs the next ten days from today’s date, on the Max Date property you can use the following:

{{ moment().add(10, "days") }}

The following question is also discussed on How Do I Do X on Appsmith Session on our community call. Watch it here: How Do I Do X? - YouTube