摘要: /** * 获取当前日期的下周一到下周日的所有日期集合 * @return */ public static List getNextWeekDateList(){ Calendar cal1 = Calendar.getInstance(); Calendar cal2 =Calendar.get 阅读全文
posted @ 2020-06-28 17:12 yvioo 阅读(2727) 评论(0) 推荐(0)
摘要: 注: SimpleDateFormat是线程不安全的 public static SimpleDateFormat format = new SimpleDateFormat("yyyyMMdd"); public static SimpleDateFormat format1 = new Simp 阅读全文
posted @ 2020-06-28 16:11 yvioo 阅读(10663) 评论(2) 推荐(0)
摘要: /** * 获取当前日期所在的周一到周日的所有日期集合 * @return */ public static List<Date> getWeekDateList() { Calendar cal = Calendar.getInstance(); // 设置一个星期的第一天,按中国的习惯一个星期的 阅读全文
posted @ 2020-06-28 15:21 yvioo 阅读(2826) 评论(0) 推荐(0)
摘要: /** * 获取当前时间所在周的周一和周日的日期时间 * @return */ public static Map<String,String> getWeekDate() { Map<String,String> map = new HashMap(); SimpleDateFormat sdf 阅读全文
posted @ 2020-06-28 15:15 yvioo 阅读(17631) 评论(0) 推荐(1)
摘要: /** * 获取当前周的周一的日期 * @param date 传入当前日期 * @return */ public static Date getThisWeekMonday(Date date) { Calendar cal = Calendar.getInstance(); cal.setTi 阅读全文
posted @ 2020-06-28 14:43 yvioo 阅读(7405) 评论(0) 推荐(0)