src/main/java/pw/phylame/util/DateUtils.java
/**
     * Returns end date from specified begin date and interval days.
     * @param sDate begin date
     * @param days the interval days
     * @return end date
     */
Returns end date from specified begin date and interval days.
@param sDate begin date
@param days the interval days
@return end date
Returns end date from specified begin date and interval days . @param sDate begin date @param days the interval days @return end date
public static Date calculateEndDate(Date sDate, int days) {
        Calendar sCalendar = Calendar.getInstance();
        sCalendar.setTime(sDate);
        sCalendar.add(Calendar.DATE, days);
        return sCalendar.getTime();
    }
public static Date calculateEndDate ( Date sDate , int days ) { Calendar sCalendar = Calendar . getInstance ( ) ; sCalendar . setTime ( sDate ) ; sCalendar . add ( Calendar . DATE , days ) ; return sCalendar . getTime ( ) ; }
Returns end date from specified begin date and interval days.
Returns end date from specified begin date and interval days .