'Disable dates in bootstrap datepicker

as the title says, I would like to disable specific dates from a bootstrap datepicker (v4.6).Is there a way to do so? I've already tried to add some properties to it by doing

$('#input_date').datepicker('option', 'minDate', '2022-02-10');

without success (it actually creates a new jquery UI datepicker which I don't want).



Sources

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

Source: Stack Overflow

Solution Source