myDatePinker设置开始时间不能大于结束时间

时间:2022-02-06 00:06:36
                         操作时间起: 
<input type="text" name="startTime" id="startTime" style="width:90px;color:#999999; "
value="<c:if test ="${not empty startTime}">${fn:substring(startTime,0,10)}</c:if><c:if test = "${empty startTime}"><fmt:formatDate value="<%=beginDate %>" type="both" pattern="yyyy-MM-dd" /></c:if>"
onfocus="inputfocus(this)" class="Wdate" onclick="WdatePicker({dateFmt:'yyyy-MM-dd',maxDate:'#F{$dp.$D(\'endTime\')}'});"/>
&nbsp;操作时间止:&nbsp;
<input type="text" name="endTime" id="endTime" style="width:90px;color:#999999; "
value="<c:if test = "${not empty endTime}">${fn:substring(endTime,0,10)}</c:if><c:if test = "${empty endTime}"><fmt:formatDate value="<%=endDate %>" type="both" pattern="yyyy-MM-dd" /></c:if>"
onfocus="inputfocus(this)" class="Wdate" onclick="WdatePicker({dateFmt:'yyyy-MM-dd',minDate:'#F{$dp.$D(\'startTime\')}'});"/>

onclick="WdatePicker({dateFmt:'yyyy-MM-dd',maxDate:'#F{$dp.$D(\'endTime\')}'});"

onclick="WdatePicker({dateFmt:'yyyy-MM-dd',minDate:'#F{$dp.$D(\'startTime\')}'});"