public static void main(String[] args)
{
Calendar calendar = Calendar.getInstance();
//加减天数
calendar.add(Calendar.DAY_OF_MONTH, 90);
Date Days = calendar.getTime();
//转换成年月日的形式
SimpleDateFormat DateTime = new SimpleDateFormat("yyyy-MM-dd");
String sDateTime = DateTime.format(Days);
System.out.println(sDateTime.toString());
}
天数加减