Datepicker is a plugin that adds the function of selecting time without the necessity of using custom JavaScript code. See the examples.
Detailed documentation and more examples you can find in our Bootstrap Datepicker Docs
Datapicker disabled dates
The fitler
option accept function in which you can specify conditions for date
filtering. A result of true indicates that the date should be valid and a result of false
indicates that it should be disabled. In the following example all saturdays and sundays will
be disabled.