Dear Experts
I use datepicker as

  <input style="background-color:#FFC;" type="text"  size="9" name="date" id="datepicker-13" 
            value="<?php echo date('d-m-Y', strtotime($date));?>">
<script>
var j = jQuery.noConflict();
j(document).ready(function(){
j("#datepicker-13"). datepicker({dateFormat:'dd-mm-yy'});
   <!--   j( "#datepicker-13" ).datepicker("show"); -->
});
</script>

This datepicker pick any date but I want it to select date between this ranges
$date1='2016-07-01'
$date2='2017-06-30'
Suppose If I select date ='2019-06-30' then it must refuse to select becuase this date is not between $date1,$date2

Thanks

Sir as I wrote:

Suppose If I select date ='2019-06-30' then it must refuse to select becuase this date is not between $date1,$date2

$date1 is min_date_range
$date2 is max_date_range

Datepicker must not accept/select date outside min_date_range and max_date_range.

I hope it is clear now. Thanks

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.