当前时间的后一天

    xiaoxiao2021-03-25  137

    /**      * 当前时间的后一天      * @Autor Jack      * @param 时间字符串      *            (yyyy-MM-dd )      * @return      * @throws ParseException       */     public static String  getDateNextDay(String time) throws ParseException{     SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");     Date date = sdf.parse(time);     long lon = date.getTime()+(24*60*60*1000);         Date datime = new Date(lon);     String creatDate = sdf.format(datime);     return creatDate;     }
    转载请注明原文地址: https://ju.6miu.com/read-11693.html

    最新回复(0)