3 Answers
Hi,
By default datepicker comes with option to select future year/month/date.
If you want to limit minDate and maxDate, you can refer code:
https://gridphp.com/demo/demos/integrations/datepicker.phps line 45
I meant datereange picker. Cannot get to future months more than current by default
You can set maxDate like following. 1y will allow future date of 1 year. For months, you can set 24m or so as well.
$col[“searchoptions”][“opts”][“datepickerOptions”] = array(“maxDate”=>”1y”, “numberOfMonths”=>2);
You can check commented line 53 here: https://gridphp.com/demo/demos/integrations/daterangepicker.phps
Your Answer