How to Restrict to choose the future date in Bootstrap Date picker?
here is the code what i tried
$( 'selecter' ).datepicker( { maxDate : new Date(), autoclose : true } ); If you want to restrict the datepicker to only allow the selection of dates in the future, use the following:
$('.datepicker').datepicker({ startDate: new Date() }); To only allow dates in the past, use this instead:
$('.datepicker').datepicker({ endDate: new Date() }); Fiddle here: http://jsfiddle.net/tuG6C/620/
endDate.. bootstrap-datepicker.readthedocs.org/en/release/…