src/org/kocakosm/pitaya/time/Dates.java
public static boolean isSameMonth(Calendar cal1, Calendar cal2)
	{
		return cal1.get(ERA) == cal2.get(ERA)
			&& cal1.get(YEAR) == cal2.get(YEAR)
			&& cal1.get(MONTH) == cal2.get(MONTH);
	}
public static boolean isSameMonth(Calendar cal1, Calendar cal2)
	{
		return cal1.get(ERA) == cal2.get(ERA)
			&& cal1.get(YEAR) == cal2.get(YEAR)
			&& cal1.get(MONTH) == cal2.get(MONTH);
	}
public static boolean isSameMonth ( Calendar cal1 , Calendar cal2 ) { return cal1 . get ( ERA ) == cal2 . get ( ERA ) && cal1 . get ( YEAR ) == cal2 . get ( YEAR ) && cal1 . get ( MONTH ) == cal2 . get ( MONTH ) ; }
Returns whether the given {@code Calendar}s represent the same month.

@param cal1 the first {@code Calendar}.
@param cal2 the second {@code Calendar}.

@return whether the given {@code Calendar}s represent the same month.

@throws NullPointerException if one of the arguments is {@code null}.
Returns whether the given { @code Calendar } s represent the same month .