摘要: 错误示范:calendar.set(Calendar.MONTH, calendar.get(Calendar.MONTH) - 1);//获取一个月前的今天这种写法假设传入的日期为2019-03-31,得到的结果是2019-03-03,2月31号-->推到了3月3号正确写法: calendar.a 阅读全文
posted @ 2019-02-14 16:22 荒野猛兽 阅读(2447) 评论(0) 推荐(0) 编辑