Java calendar get the current date, without hours, minutes, seconds and milliseconds, in milliseconds

后端 未结 5 1359
遥遥无期
遥遥无期 2020-12-14 17:32

I would like to get the current date in milliseconds with only year, month and date. But when I use this code:

Calendar cal = Calendar.getInstance();
cal.cle         


        
5条回答
提交回复
热议问题