package com.bcxin.Infrastructures.validations;

import java.util.Calendar;
import java.util.Date;

public class DateValidator {
    public static Date dateAddYear(Date date,int amount){
        Calendar rightNow = Calendar.getInstance();
        rightNow.setTime(date);
        rightNow.add(Calendar.YEAR, amount);// 日期加年数量
        Date dt = rightNow.getTime();
        return dt;
    }
}
