MaxDate

@caromagagna It looks like you have no disabled dates.
Try to see if you add:
Before the const disabledDates . what does it log?
I suggest:

  1. Get rid of the console.log (last line)

  2. Make sure there’re disabled dates.

  3. Currently, you’re using a depreciated method at the beginning:

//DEPRECIATED 
        $w ("#datePicker1").disabledDates = disabledDates 
           $w ("#datePicker2").disabledDates = disabledDates  

Instead you should use disabledDateRanges to set these dates.