SimpleDateFormat format = new SimpleDateFormat("yyyy年MM月dd日");
format.format(authentication.getCreateTime());
request.setAttribute("createTime", format.format(authentication.getCreateTime()));
Calendar c = Calendar.getInstance();
c.setTime(authentication.getCreateTime());
c.add(Calendar.DAY_OF_MONTH, 3);// 今天+3天
Date finishTime = c.getTime();
request.setAttribute("finishTime", format.format(finishTime));
日期往后加三天
最新推荐文章于 2024-08-19 04:04:19 发布