How to show only specific period Date in Bootstrap Datepicker

Step -1
Add BootStrap CDN’s

<link rel=”stylesheet” href=””>

<script src=””></script>

<script src=””></script> (Optional)

Step -2 

Add HTML input tag –

<input type=”text”name=”Date” id=”Date”   placeholder=”DD/MM/YYYY”>

Step -3 

Add Java Script Code

in this Example We have Disabled past 6 months from Current date 


$( “#Date”).datepicker({
dateFormat: ‘dd/mm/yy’,
changeMonth: true, changeYear: true,
minDate: ‘-6m’,
maxDate: new Date() });


Leave a Reply