How to set start and End date to bootstrap datepicker?
<script>
/*** For the start date***/
var FromStartDate = new Date();
$('#datepicker').datepicker({
startDate: FromStartDate,
autoclose: true
});
/*** For the end date***/
var FromEndDate = new Date();
$('#datepicker').datepicker({
endDate: FromEndDate,
autoclose: true
});
</script>
Comments
Post a Comment