//获取时间
Date date = new Date();
Calendar calendar = new GregorianCalendar();
calendar.setTime(date);
//参数为1表示把日期往后增加一天,负数表示把日期往前减少一天
calendar.add(Calendar.DATE,1);
//这个时间就是日期往后推一天日期
date = calendar.getTime();
© 版权声明
非商业转载或引用请标注本文链接,商业转载或引用请联系站长
部分文章内容可能来自互联网,如有侵权,请通过邮件联系
部分文章内容可能来自互联网,如有侵权,请通过邮件联系
THE END
暂无评论内容