jQuery Datepicker minDate is not working in bootstrap
In newer bootstrap datepicker version use below method
limiting end date **eg** +1d, +3m, +5y , -1d , -3m, -5y
limiting start date **eg** +1d, -23d, +3m ,2y, -2y
$('#dob').datepicker({
fautoclose: true,
startDate: '+1y',
});
$('#dob').datepicker({
fautoclose: true,
endDate: '-18y',
});
For jquery datepicker use:
$(".datepicker").datepicker({
minDate: 0
});
For Bootstrap versions use:
$(".datepicker").datepicker({
startDate: new Date()
});
to disable past dates use startDate instead of minDate. like this...
$('#checkinDate').datepicker({
format: "dd/mm/yyyy",
autoclose: true,
startDate: new Date()
});