Example 4-3-2 the previous date + 3 days cannot be greater than the subsequent date
Date from to
<input type= "text" class= "wdate" id= "d4321"
Onfocus= "Wdatepicker ({maxdate: ' #F {$dp. $D (\ ' d4322\ ', {d:-3});} ')" />
<input type= "text" class= "wdate" id= "d4322"
Onfocus= "Wdatepicker ({mindate: ' #F {$dp. $D (\ ' d4321\ ', {d:3});} ')" />
Use $DP. $D function to add the value in the Date box, plus the defined date difference:
Two parameters: id={character type} The ID value of the text box to be processed, obj={object type} date Difference
Date Difference usage:
Attribute Y,m,d,h,m,s, respectively, represents the day of the month and seconds
2. Up to 3 months, at least one day of data, the maximum date cannot exceed the current date
<input id= "StartTime" type= "text" runat= "server" class= "Otext"
Onclick= "Wdatepicker ({firstdayofweek:1, StartDate: '%y-%m-01 00:00:00 ', datefmt: ' Yyyy-mm-dd HH:mm:ss ', Alwaysusestartdate:true, skin: ' Twoer ',
mindate: ' #F {$dp. $D (\ ' endtime\ ', {m:-3});} ', MaxDate: ' #F {$dp. $D (\ ' endtime\ ', {d:-1} ' }) "/> to
<input id= "EndTime" type= "text" runat= "server" class= "Otext"
Onclick= "Wdatepicker ({firstdayofweek:1, StartDate: '%y-%m-01 00:00:00 ', datefmt: ' Yyyy-mm-dd HH:mm:ss ', Alwaysusestartdate:true, skin: ' Twoer ',
mindate: ' #F {$dp. $D (\ ' starttime\ ', {d:1});} ', MaxDate: '%y-%m-%d ' }) " />
Wdatepicker mindate&maxdate