import java.time.LocalDateTime;
import java.time.format.DateTimeFormatter;
public class Data1 {
public static void main(String[] args) {
LocalDateTime d = LocalDateTime.now();
DateTimeFormatter d1 = DateTimeFormatter.ofPattern("E");
System.out.println("今天是"+d1.format(d));
DateTimeFormatter d2 = DateTimeFormatter.ofPattern("yyyy年MM月dd日 HH:mm:ss E");
System.out.println("今天是"+d2.format(d));
}
}
07-12
1398
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)