I need to implement the logic whether input date such as SEP 2014, OCT 2014 , NOV 2014 etc is current month or not. I have written below logic for checking whether a selected week is a current week or not using below method but not able to implement for current month
public static boolean isCurrentWeek(Date date, Date dateStart, Date dateEnd)
{
if (date != null && dateStart != null && dateEnd != null) {
if(date.equals(dateStart) || date.equals(dateEnd) ){
return true;
}else if (date.after(dateStart) && date.before(dateEnd)) {
return true;
}
else {
return false;
}
}
return false;
}