时间格式化输出 LocalDate date = LocalDate.of(2014, 3, 18);String s1 = date.format(DateTimeFormatter.BASIC_ISO_DATE);String s2 = date.format(DateTimeFormatter.ISO_LOCAL_DATE);System.out.println(s1); // 201403... java 2023-10-29 116 点赞 1 评论 175 浏览