① The start date cannot be greater than the end date. The minimum date is the day, and the maximum date is the end date.
<B> Start date </B> <input id = "starttime" type = "text" name = "starttime" class = "wdate wtime" style = "float: left "onclick =" wdatepicker ({mindate: new date (), maxdate: '# f {$ DP. $ D (\ 'endtime \ ')}'}) ">
<B> end date </B> <input id = "endtime" type = "text" name = "endtime" class = "wdate wtime" style = "float: left "onclick =" wdatepicker ({mindate: '# f {$ DP. $ D (\ 'starttime \ ')}'}) ">
② Show only the year and month
<Input id = "date" type = "text" name = "date" class = "wdate wtime" onclick = "wdatepicker ({skin: 'whygreen', datefmt: 'yyyy-mm month', maxdate: new date ()}) "/>
This article is from the "My Java World" blog, please be sure to keep this source http://hanchaohan.blog.51cto.com/2996417/1532124