日期:2014-05-20 浏览次数:20715 次
public String getNewTime(String timeString,int addminutes){
Date date=new SimpleDateFormat("yyyyMMddHHmmss").parse(timeString);
Calendar calendar=Calendar.getInstance();
calendar.setTime(date);
calendar.add(Calendar.MINUTE, addminutes);
Date newdate=calendar.getTime();
return DateFormatUtils.format(newdate, "yyyyMMddHHmmss");
}