public static void validateDate(int day, Month month, int intMonth, int year) {
		if (day < 1 || day > 31 || intMonth < 1 || intMonth > 12) {
			logger.warn("wrong number of day or number of month was provided");
			throw new IllegalArgumentException(
					"invalid number for the day or for the month");
		}
		
		if (day < 1 || day > daysInMonth(month, year)) {
			logger.warn("wrong number of day was provided");
			throw new IllegalArgumentException("invalid number for the day");
		}
	}