java獲取指定日期的前幾天時間

Calendar cal = Calendar.getInstance(); cal.set(2019,10,11); Date time = cal.getTime(); System.out.println("當前指定日期是:"+new SimpleDateFormat(fm).format ...

Thu Oct 24 18:35:00 CST 2019 0 1764
 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM