摘要: //获取年月,最大日期 SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd"); Calendar cal = Calendar.getInstance(); Date date = format.parse(a); cal.setT 阅读全文
posted @ 2017-09-22 15:47 徘徊在人间的水墨 阅读(243) 评论(0) 推荐(0) 编辑
摘要: Calendar c = Calendar.getInstance(); c.set(Calendar.DAY_OF_MONTH, c.getActualMaximum(Calendar.DAY_OF_MONTH)); System.out.println(format.format(c.getTi 阅读全文
posted @ 2017-09-22 15:33 徘徊在人间的水墨 阅读(87) 评论(0) 推荐(0) 编辑