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