使用My97DatePicker设置日期的属性示例

                <td>交易日期:</td>
                <td colspan="3">
                     <input class="Wdate" id="queryTransDateStart" name="queryTransDateStart" type="text" size="15"
                         onfocus="WdatePicker({doubleCalendar:true,dateFmt:'yyyy-MM-dd',startDate:'%y-{%M-1}-%d',maxDate:'%y-%M-%d'})" 
                          <%if(queryTransDateStart!=null) out.print("value='"+queryTransDateStart+"'"); %> readonly="readonly"/>
                      -    
                       <input class="Wdate" id="queryTransDateEnd" name="queryTransDateEnd" type="text" size="15"
                         onfocus="WdatePicker({doubleCalendar:true,dateFmt:'yyyy-MM-dd',startDate:'%y-{%M-1}-%d',maxDate:'%y-%M-%d',minDate:'#F{$dp.$D(\'queryTransDateStart\')}'})" 
                          <%if(queryTransDateEnd!=null) out.print("value='"+queryTransDateEnd+"'"); %> readonly="readonly"/>
                </td>

 

posted @ 2017-10-12 10:59  新手娃娃菜  阅读(1142)  评论(0编辑  收藏  举报