日期:2014-05-20 浏览次数:20810 次
SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd");
Date date = format.parse("2010-01-05");
Calendar c = Calendar.getInstance();
c.setTime(date);
c.add(Calendar.DATE, 21);
date = c.getTime();
System.out.println(format.format(date));