src/edu/kit/informatik/calendar/Date.java
/**
     * Subtracts a given amount of months to the instance
     * Calendar rules are respected
     * @param months The amount of months to subtract
     * @return A new {@link Date} instance with the corresponding values
     */
Subtracts a given amount of months to the instance
Calendar rules are respected
@param months The amount of months to subtract
@return A new  Date instance with the corresponding values
Subtracts a given amount of months to the instance Calendar rules are respected @param months The amount of months to subtract @return A new Date instance with the corresponding values
public Date minusMonths(int months) {
        int totalMonths = this.month - months;
        if (totalMonths <= 0) {
            return new Date(year, 12, 1).minusYears(1).minusMonths(Math.abs(totalMonths)).plusDays(day - 1);
        } else {
            return new Date(year, totalMonths, 1).plusDays(day - 1);
        }
    }
public Date minusMonths ( int months ) { int totalMonths = this . month - months ; if ( totalMonths <= 0 ) { return new Date ( year , 12 , 1 ) . minusYears ( 1 ) . minusMonths ( Math . abs ( totalMonths ) ) . plusDays ( day - 1 ) ; } else { return new Date ( year , totalMonths , 1 ) . plusDays ( day - 1 ) ; } }
Subtracts a given amount of months to the instance
 Calendar rules are respected
 @param months The amount of months to subtract
 @return A new {@link Date} instance with the corresponding values
Subtracts a given amount of months to the instance Calendar rules are respected @param months The amount of months to subtract @return A new { @link Date } instance with the corresponding values