jsp 日期+30天如何写

http://zhidao.baidu.com/question/62803971.html

SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
String systemTime = sdf.format(new Date());
=-----------------------------------
上面是获取系统时间,如何吧 systemTime 在加上30天,因为我要做查询比较啊 between '"+systemTime+"' and '这里如何在systemtime上+30天啊'";


Calendar cal = Calendar.getInstance();
Date now = cal.getTime(); // 当前的时间
cal.add(Calendar.DAY_OF_MONTH,30); // 增加30天
Date to = cal.getTime();

快乐渡过每一天,减肥坚持每一天