<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'})" />
年月日就是當前日期,比如今天是2018年8月3日那么就是2018-08-03 00:00:00
若要顯示當前月份的1號那么就是οnclick="WdatePicker({startDate:'%y-%M-01 00:00:00',dateFmt:'yyyy-MM-dd HH:mm:ss'})"