Min Date|Time October 21, 2018, 04:03:21 PM Hi there,I am trying to use Min Date | Time on an Add page to limit the choice of a date. I would like the calendar to be limited to 3 weeks before "today". I checked on the flatpickr website and it seems possible (https://flatpickr.js.org/examples/#mindate-and-maxdate).Can you help me ? what value i should enter the Min Date | Time field ?Thanks Quote Selected
Re: Min Date|Time Reply #1 – November 05, 2018, 03:15:43 PM Hi,Any chances to get an aswer ?In classic version, i have tried as mentionned on flatpicker support:Min Date : todayMax date: new Date().fp_incr(21)With no luck.Thanks Quote Selected
Re: Min Date|Time Reply #2 – November 06, 2018, 03:47:21 PM It seems like min|max date is a feature left out. For now, I will suggest you use custom code to edit the page.<input class="form-control datepicker" required="" value="<?php echo $this->set_field_value('expense_date',''); ?>" type="datetime" name="expense_date" placeholder="Enter Expense Date" data-min-date="<?php echo date('Y-m-d', strtotime("-12 day", time())) ?>" data-enable-time="false" data-date-format="Y-m-d" data-alt-format="F j, Y" data-inline="false" data-no-calendar="false" data-mode="single" />You can equally look at this . https://github.com/flatpickr/flatpickr/issues/1380. Regards Quote Selected