摘要: public static void main(String[] args) { System.out.println(parse3("2021-10")); } //指定星期几即可 public static LocalDate parse(String text) { DateTimeForma 阅读全文
posted @ 2022-02-11 17:24 丶Ronnie 阅读(312) 评论(0) 推荐(0)
摘要: /** * 判断一年的第几周 * * @param datetime * @return * @throws java.text.ParseException */public static Integer whatWeek(String datetime) throws java.text.Par 阅读全文
posted @ 2022-02-11 17:15 丶Ronnie 阅读(74) 评论(0) 推荐(0)
摘要: static String geWek() { String startdate = ""; String enddate = ""; SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd"); Date date = null; try { 阅读全文
posted @ 2022-02-11 17:12 丶Ronnie 阅读(160) 评论(0) 推荐(0)