CSS
Bootstrap
Bootstrap Datetimepicker Disable Specific Dates Example
In this quick example, let's see bootstrap datetimepicker disable specific dates. if you want to see example of bootstrap datetimepicker disable dates dynamically then you are a right place. This article will give you simple example of how to disable specific dates in bootstrap datetimepicker. you will learn datetimepicker disable specific dates.
- TAGS
- Bootstrap
- 4.5/5.0
- Last updated 08 September, 2022
- By Admin
I will give you simple solution of how to disable specific dates in bootstrap datetimepicker. we normally use bootstrap datetimepicker when you need to use datetimepicker with bootstrap 4 project theme. if you need to disable some dates for public holiday then you can do it easily.
bootstrap datetimepicker provide option to "disabledDates" when you can set dates so it will no available box. so let's see bellow solution and full example.
Preview:
Solution:
$(function () { var disabledDate = ['2020-07-14', '2020-07-15','2020-07-16']; $('#datetimepickerDemo').datetimepicker({ disabledDates: disabledDate }); });
Example:
Bootstrap Datetimepicker Disable Specific Dates Example - codewale.com Bootstrap Datetimepicker Disable Specific Dates Example - codewale.com
I hope it can help you...