When performing a Time query, you sometimes need two dates, from one date to another, but there is a problem. For example, what if the end date of the latter is later than the start date? It is troublesome to use js to write and verify data. You can use this calendar control to conveniently display the end date only after the start date. For details, refer to the following:
For example, if I select the start date as July 22, July 28, the end date can only be selected from the date after July 15, July 28, saving us the trouble of verifying that the end date is earlier than the start date.
The Code is as follows:
Input id = "startdate" of the start date"
Input id = "enddate" of the end date"
Date range: <input id = "startdate" class = "wdate" type = "text" onfocus = "Var enddate = $ DP. $ ('enddate'); wdatepicker ({onpicked: function () {enddate. focus () ;}, maxdate: '# f {$ DP. $ D (\ 'enddate \')}'}) "/> to <input id =" enddate "class =" wdate "type =" text "onfocus =" wdatepicker ({mindate: '# f {$ DP. $ D (\ 'startdate \ ')}'}) "/>