public boolean includesDate(Calendar cal) {
int month = cal.get(Calendar.MONTH);
if (month == this.start || month == this.end) {
return true;
}
Calendar compareCal = (Calendar) cal.clone();
while (compareCal.get(Calendar.MONTH) != this.start) {
compareCal.add(Calendar.MONTH, 1);
}
while (compareCal.get(Calendar.MONTH) != this.end) {
if (compareCal.get(Calendar.MONTH) == month) {
return true;
}
compareCal.add(Calendar.MONTH, 1);
}
return false;
}