Example 1 - Set max date in different ways in jQuery UI Datepicker

Click on the textbox

Date Object (maxDate: new Date('2023-2-12'))
Number (maxDate: 2)
String (maxDate: "+1m")