ChenJiaHe
2020-11-02 7623a26be989de427099ff13dc27183db95f13a6
src/main/java/com/hx/util/DateUtil.java
@@ -272,6 +272,19 @@
        return c.getTime();
    }
    /**时间上年数叠加
     * @Author: ChenJiaHe
     * @param dateTime 时间
     * @param dayNum 天数
     * @return
     */
    public static Date addYear(Date dateTime,int dayNum){
        Calendar c = Calendar.getInstance();
        c.setTime(dateTime);
        c.add(Calendar.YEAR, dayNum);
        return c.getTime();
    }
    /**
     * 转换成字符串到指定的日期
     *