1.动态时间范围限制:
可以通过系统给出的动态变量,如%y(当前年),%M(当前月)等来限制日期范围,还可以通过{}进行表达式运算,如:{%d+1}:表示明天。
格式 | 说明 |
%y | 当前年 |
%M | 当前月 |
%d | 当前日 |
%ld | 本月最后一天 |
%H | 当前时 |
%m | 当前分 |
%s | 当前秒 |
{} | 运算表达式, 如:{%d+1}: 表示明天 |
#F{} | {}之间是函数可写自定义JS代码 |
1)只能选择今天
天
以前的日期(包含今天)。
<input type="text" class="Wdate" id="occurDate" onfocus="WdatePicker({skin:'whyGreen',dateFmt: 'yyyy-MM-dd', maxDate:'%y-%M-%d', readOnly:true})" value = "${occurdate}" style="background-color:#e4e4e4;; height:65%; width:100%"></input>
2) 只能选择今天以后的日期(不包含今天),使用运算表达式。