code: private static boolean checkDate(Calendar cal, int date, int month) {
  		return cal.get(Calendar.DATE) == date && cal.get(Calendar.MONTH) == month;
  	}
docs: Check if the given date represents the given date and month.
  
  @param cal
  The Calendar object representing date to check.
  @param date
  The date.
  @param month
  The month.
  @return true if they match, false otherwise.