JAVA获取当前时间加一天时间:2023-03-09 16:05:06 01、获取当前时间 SimpleDateFormat df = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); return df.format(new Date()); 02、获取当前时间加一天 SimpleDateFormat df = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); return df.format(new Date().getTime()+1*24*3600*1000);