除了使用靜態的日期值以外,還可以使用動態參數(如:%y,%M分別表示當前年和月)
下例演示,年月日使用當年當月的1日,時分秒使用00:00:00作爲起始時間
<input type="text" id="d233" onFocus="WdatePicker({startDate:'%y-%M-01 00:00:00',dateFmt:'yyyy-MM-dd HH:mm:ss',alwaysUseStartDate:true})"/>
除了使用靜態的日期值以外,還可以使用動態參數(如:%y,%M分別表示當前年和月)
下例演示,年月日使用當年當月的1日,時分秒使用00:00:00作爲起始時間
<input type="text" id="d233" onFocus="WdatePicker({startDate:'%y-%M-01 00:00:00',dateFmt:'yyyy-MM-dd HH:mm:ss',alwaysUseStartDate:true})"/>