The jQuery UI Datepicker widget allows us to pick a from the widget. It has various options by using them you can customize it.
maxDate options specify the date range. That restrict the users to pick a date within the specified range.
The value of
maxDate options values can also be defined dynamically at the runtime.