日期:2014-05-16 浏览次数:20469 次
<% SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd"); Calendar c = Calendar.getInstance(); Date now = c.getTime(); String begindate = dateFormat.format(c.getTime());//开始时间 c.add(Calendar.DATE, 1); dateFormat = new SimpleDateFormat("yyyy-MM-dd"); String enddate = dateFormat.format(c.getTime());//结束时间 %> <script type="text/javascript"> function wuhuinput() { var now = new Date; alert(now); } </script>