'Datepicker Jquery Javascript Day specific range

How to put a specific maximum in datepicker jquery, example I want the maximum selection day to be until the 20th of each month?

But after the 20th of each month I need it to be restricted until the 20th of the next month.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source