1.获取当前时间的后一天

//
获取calender对象 Calendar calendar = Calendar.getInstance(); //设置当前时间 calendar.setTime(new Date()); //在当前时间+1天 calendar.add(Calendar.DAY_OF_MONTH, +1); //获取最终时间 Date time = calendar.getTime();

 

posted on 2019-05-24 15:41  足下之路  阅读(132)  评论(0编辑  收藏  举报