Magento 2 Date Picker with Mindate as another date field's date
0
1
I have 2 date fields in my custom module (Start Date and End Date) and with the below code i can get 2 fields with date pickers. <div class="row"> <label class="control-label">Start Date</label> <input name="start_date" id="start_datepicker" title="Start Date" value="" type="text" > </div> <div class="row"> <label class="control-label">End Date</label> <input name="end_date" id="end_datepicker" title="End Date" value="" type="text" > </div> <script> require([ "jquery", "mage/calendar" ], function ($) { var curdate = new Date(); ...