请问题高手:
今天时间已经知道.
如何通过加一个值而得到明天的时间呢.

解决方案 »

  1.   

    Date todayDate = new Date();
    Date tomorrowDate = new Date();
    todayDate.getTime();
    SimpleDateFormat sdf = new SimpleDateFormat("",Locale.CHINESE);
    sdf.applyPattern("yyyy年MM月dd日_HH点mm分ss秒");

    String timeStr = sdf.format(todayDate); 
    System.out.print("Today time is:" + timeStr +"\r\n");
    todayDate.setDate(todayDate.getDate()+1);
    tomorrowDate = todayDate;
    timeStr = sdf.format(tomorrowDate);
    System.out.print("Tomorrow time is:" + timeStr);