Date endTime = new Date();
Date startTime2 = org.apache.commons.lang3.time.DateUtils.truncate(endTime, Calendar.DATE);
10-10
1370
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
06-29
2044
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
03-29
Date endTime = new Date();
Date startTime2 = org.apache.commons.lang3.time.DateUtils.truncate(endTime, Calendar.DATE);