java中'明天'

 
 java.text.SimpleDateFormat sdf = new java.text.SimpleDateFormat(
          "yyyy-MM-dd");
       java.util.Date todate = sdf.parse(endtime);
       Calendar gc = Calendar.getInstance();
       gc.setTime(todate);
       gc.add(Calendar.DAY_OF_MONTH, 1 );
       endtime = sdf.format(gc.getTime());

你可能感兴趣的:(java,calendar)