<! DOCTYPE HTML PUBLIC "-//w3c//dtd HTML 4.01 transitional//en" > <title>my97datepicker Date control using </title> <script type= "Text/javascript" src= "My97datepicker/wdatepicker.js" ></script> <script type= "Text/javascript" src= "Js/jquery-easyui-1.3.6/jquery-1.8.0.min.js" ></script> <!--Set the default time for the current time--> <script type= "Text/javascript" > $ (document). Ready (function () { var d = new Date (); function Addzero (v) {if (v <) return ' 0 ' + V;return v.tostring ();} var s = d.getfullyear (). toString () + '-' +addzero (D.getmonth () + 1); document.getElementById (' Txtstarttime '). Value=s; }); </script> <body> <center> Use of </center> Basic usage: <input id= "Txtstarttime" type= "text" onfocus= "Wdatepicker ({readonly:true})" class= "Wdate"/><br> <br>
You can only select a date before today: <input id= "class=" Wdate "onfocus=" Wdatepicker ({readonly:true,maxdate: '%y-%m-%d '}) "/><br><br>
You can only select a date from 20 hours to 30 hours by using an operational expression <input id= "class=" Wdate "onclick=" Wdatepicker ({datefmt: ' Yyyy-mm-dd hh:mm ', mindate: '%y-%m-%d {%H-20}:%m:%s '), MaxDate: '%y-%m-%d {%h+30}:%m:%s '}) '/><br><br>
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.