String startTime =“2018-03-15”;
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd"); //格式转换工具
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd"); //格式转换工具
Date date = sdf.parse(startTime);//String转为date
Calendar c = Calendar.getInstance();//日期加减工具
c.setTime(date);
c.add(Calendar.DAY_OF_MONTH, 1);// +1天
c.add(Calendar.MINUTE, -10);//-10分钟
date = c.getTime();
String nextTime = sdf.format(date);//date 转为String