0

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

Edited by phphp

2
Contributors
3
Replies
17
Views
1 Year
Discussion Span
Last Post by rproffitt
0

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

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.