CSS
Bootstrap
How To Disable Previous Date In Bootstrap Datepicker?
Today, bootstrap datepicker disable past dates is our main topic. Here you will learn how to disable past date in bootstrap datepicker. it's simple example of how to disable previous date in bootstrap datepicker. this example will help you how to disable previous date in bootstrap datepicker using jquery. Let's see bellow example how to disable past date in datepicker using bootstrap.
- 4.5/5.0
- Last updated 08 September, 2022
- By Admin
I will give you simple solution of how to disable past dates from today in bootstrap datepicker. we normally use bootstrap datepicker when you need to use datepicker with bootstrap 4 project theme. if you need to disable past dates then you can do it easily.
Bootstrap datepicker provide option to "startdate" when you can set today date so it will no available last dates. so let's see bellow solution and full example.
Preview:
Solution:
$('.datepicker').datepicker({ startDate: new Date() });
Example:
Bootstrap Datepicker Disable Past Dates Example - codewale.com/ Bootstrap Datepicker Disable Past Dates Example - codewale.com
Current Date is 5/7/2020
I hope it can help you...