引入WdatePicker.js(博客资源中有)
<script type="text/javascript" src="${context_path}/WdatePicker.js"></script>
input标签
<input type="text" id="beginTime" name="beginTime" onfocus="WdatePicker({dateFmt:'yyyy-M-d H:mm:ss',skin:'whyGreen',maxDate:'%y-%M-%d'})"/>
下面是效果图