Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

bootstrap datepicker options

 $('#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 #options
ADD COMMENT
Topic
Name
6+2 =