<tr>
<th width="15%"
style="color: #2469ac; background-color: #e6f8fd; line-height: 28px;">
选择日期:
</th>
<td style="padding: 5px; line-height: 22px; width: 80%">
开始时间:
<input id="startDate" name="startDates" style="width: 135px;" class='Wdate' value='${fgStreetTown.startDateStr}' onFocus="WdatePicker({startDate:'%y-%M-%d 00:00:00',dateFmt:'yyyy-MM-dd HH:mm:ss'})"/>
结束时间:
<input id="endDate" name="endDates" style="width: 135px;" class='Wdate' value='${fgStreetTown.endDateStr}' onFocus="WdatePicker({startDate:'%y-%M-%d 23:59:59',dateFmt:'yyyy-MM-dd HH:mm:ss'})" />
</td>
</tr>
年月日的话 <input id="endDate" name="endDates" style="width: 135px;" class='Wdate' value='${fgStreetTown.endDateStr}' onFocus="WdatePicker({startDate:'%y-%M-01 00:00:00',dateFmt:'yyyy-MM-dd HH:mm:ss'})" />
The date is the current date, for example, today is August 3, 2018 so that 2018-08-03 00:00:00
To display a number of the current month is then οnclick = "WdatePicker ({startDate: '% y-% M-01 00: 00: 00', dateFmt: 'yyyy-MM-dd HH: mm: ss'})"