SimpleDateFormat df = new SimpleDateFormat("yyyy-MM-dd"); Calendar cal = Calendar.getInstance(); cal.add(Calendar.DATE, 1); String endTime = df.format(cal.getTime()); System.out.println(endTime);
获取系统当前时间的第二天
最新推荐文章于 2023-09-04 18:02:55 发布
SimpleDateFormat df = new SimpleDateFormat("yyyy-MM-dd"); Calendar cal = Calendar.getInstance(); cal.add(Calendar.DATE, 1); String endTime = df.format(cal.getTime()); System.out.println(endTime);