📜  java Date 获取今天的日期 - Java 代码示例

📅  最后修改于: 2022-03-11 14:52:06.814000             🧑  作者: Mango

代码示例3
SimpleDateFormat formatter = new SimpleDateFormat("dd/MM/yyyy HH:mm:ss");  
Date date = new Date();  
System.out.println(formatter.format(date));  

// ------------------------

System.out.println(LocalDate.now());