Date date = new Date();
SimpleDateFormat sim = new SimpleDateFormat("yyyy-MM-dd");
String h_updateTime = sim.format(date);
03-13
5531
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
Date date = new Date();
SimpleDateFormat sim = new SimpleDateFormat("yyyy-MM-dd");
String h_updateTime = sim.format(date);