Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

bootstrap datepicker mindate and maxdate

 $('#yourInputId').datepicker({
                    startDate: new Date(),
                    format: 'dd/mm/yyyy', //you can change date format to any
                    autoclose: true,
 					todayHighlight: true,
 					startDate: new Date(), //this will be today's date
 					endDate: new Date(new Date().setDate(new Date().getDate() + 5))
                });
 
PREVIOUS NEXT
Tagged: #bootstrap #datepicker #mindate #maxdate
ADD COMMENT
Topic
Name
6+4 =