<input type="text" id="startTime" class="form-control w-date dateInput" onclick="WdatePicker({maxDate:'#F{$dp.$D(\'endTime\')}'})"> <input type="text" id="endTime" class="form-control w-date dateInput" onclick="WdatePicker({minDate:'#F{$dp.$D(\'startTime\')}'})">