ASP. NET uses the My97datepicker date control

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.