The first thing to download is the package for the control: HTTP://PAN.BAIDU.COM/S/1AA5GK
Reference file
<srctype= "Text/javascript"></script>
Catalogue Details
General invocation
<IDtypeclassonclick/>
Customizing pop-up locations via the Position property
<classtypeIDonfocus/>
Month and day time
<typeIDonfocusclass/>
The limit date is from 2006-09-10 to 2008-12-20
<IDclasstypeonfocus/>
The limit date is 2008-3-8 11:30:00 to 2008-3-10 20:59:30
<typeclassIDonfocus/>
You can use the dynamic variables given by the system, such as%y (current year),%M (current month), and so on to limit the date range, you can also use {} to perform expression operations, such as: {%d+1}: means tomorrow
Dynamic variable Table
Only dates prior to today (including today) can be selected
<IDclasstypeonfocus= "Wdatepicker ({skin: ' green ', maxdate: '%y-%m-%d '})"/>
Can only select this month's date 1th to the last day of this month
<IDclasstypeonfocus= "Wdatepicker ({skin: ' simple ', mindate: '%y-%m-01 ', maxdate: '% Y-%m-%ld '}) "/>
Can only choose today from 7:00:00 to tomorrow 21:00:00 date
<IDclasstypeonfocus= "Wdatepicker ({skin: ' ycloudred ', datefmt: ' yyyy-m-d h:mm:ss ', MinDate: '%y-%m-%d 7:00:00 ', MaxDate: '%y-%m-{%d+1} 21:00:00 '}] "/>
The preceding date cannot be greater than the subsequent date and two dates cannot be greater than 2020-10-01
<IDclasstypeonfocus<IDclasstypeonfocus/>
The previous date + 3 days cannot be greater than the subsequent date
<typeclassIDonfocus/><typeclassIDonfocus/>
Disable dates for Sunday Saturday
<IDtypeclassonfocus= "Wdatepicker ({disableddays:[0,6]})"/>
Disable 5th 15th 25th for each month
<IDtypeclassonfocus= "Wdatepicker ({disableddates:[' 5$ ')}"/>
Note: ' 5$ ' denotes the usage of $ with 5 end note
Using the above controls in. NET simply adds a runat= "Server" property to the control!
ASP. NET uses the My97datepicker date control