DateTimeFormatter api
LocalDateTime localDateTime = LocalDateTime.now();
System.out.println(localDateTime);
DateTimeFormatter formatter02 = DateTimeFormatter.ofPattern("yyyy/MM/dd HH:mm:ss", Locale.CHINA);
DateTimeFormatter dtf = DateTimeFormatter.ofPattern("yyyy/MM/dd HH:mm:ss");
System.out.println(dtf.format(LocalDateTime.now()));
System.out.println(DateTimeFormatter.ISO_DATE.format(LocalDateTime.now()));
System.out.println(DateTimeFormatter.ISO_DATE_TIME.format(LocalDateTime.now()));