My97datepicker Date Range Limit

Source: Internet
Author: User

my97datepicker Date range limit

1. Dynamic Time range limit:

1) only the date of the day (inclusive today) can be selected.

 <  input  type  = "text"   class  = "Wdate"   ID  = "Occurdate"   onfocus  = "Wdatepicker ({skin: ' Whygreen ', datefmt: ' Yyyy-mm-dd ', maxdate: '%y-%m-%d ', readOnly: true}) "  value  =" ${occurdate} " Span style= "color: #ff0000;" > style  = "Background-color: #e4e4e4;; height:65%; width:100%"  ></ input  >  

       2) can only select dates after today (not today), using an op-expression.

 <  input  type  = "text"   class  = "Wdate"   ID  = "Occurdate"   onfocus  = "Wdatepicker ({skin: ' Whygreen ', datefmt: ' Yyyy-mm-dd ', MinDate: '%y-%m-{%d+1} ', Readonly:true}) "  value  =" ${occurdate} "   style  =" Background-color: #e4e4e4; height:65%; width:100% " ></ input  Span style= "color: #0000ff;" >>  

       3) can only select the date of this month's date 1th to the last day of the month.

 <  input  type  = "text"   class  = "Wdate"   ID  = "Occurdate"   onfocus  = "Wdatepicker ({skin: ' Whygreen ', datefmt: ' Yyyy-mm-dd ', mindate: '%y-%m-01 ', MaxDate: ' %y-%m-%ld ', readonly:true}) "  value    style   ></ input  Span style= "color: #0000ff;" >>  

4) You can only choose today from 8:00:00 to tomorrow 12:00:00 date.

<id= "Occurdate"  class= "wdate"  type= "text" onfocus = "Wdatepicker ({datefmt: ' yyyy-m-d h:mm:ss ', mindate: '%y-%m-%d 8:00:00 ', MaxDate: '%y-%m-{%d+1} 12:00:00 ')"  />

5) You can only select a date from 10 hours ago to 50 hours.

<id= "Occurdate"  class= "wdate"  type= "text" OnClick = "Wdatepicker ({datefmt: ' Yyyy-mm-dd hh:mm ', mindate: '%y-%m-%d {%h-10}:%m:%s ', MaxDate: '%y-%m-%d {%H+50}:%m:%s '}) "/>

My97datepicker Date Range Limit

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.