private boolean eventMatches(WeekViewEvent event, int year, int month) {
        return (event.getStartTime().get(Calendar.YEAR) == year && event.getStartTime().get(Calendar.MONTH) == month - 1) || (event.getEndTime().get(Calendar.YEAR) == year && event.getEndTime().get(Calendar.MONTH) == month - 1);
    }
Checks if an event falls into a specific year and month.
@param event The event to check for.
@param year The year.
@param month The month.
@return True if the event matches the year and month.
sample/src/main/java/com/alamkanak/weekview/sample/AsynchronousActivity.java