如何获取my97datepicker的值,在线等
推荐于2016-04-30 · 知道合伙人互联网行家
关注
展开全部
你在jsp页面需要引入
<script type="text/javascript" defer="defer"
src="<%=request.getContextPath() %>/My97DatePicker/WdatePicker.js"></script>
<input type="text" name="birthday" onfocus="WdatePicker()" >
然后action里获取,birthday需要定义成date类型,
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
Date date = sdf.parse(this.getBirthday());
recrument.setBirthdaye(date);
<script type="text/javascript" defer="defer"
src="<%=request.getContextPath() %>/My97DatePicker/WdatePicker.js"></script>
<input type="text" name="birthday" onfocus="WdatePicker()" >
然后action里获取,birthday需要定义成date类型,
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
Date date = sdf.parse(this.getBirthday());
recrument.setBirthdaye(date);
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询