This will solve this problem: just add a check to see if a start or end date is set today, which you will need to implement yourself.
if( (todayDate.isAfter(startDate) && todayDate.isBefore(endDate) ) || (todayDate.isEqual(startDate) || todayDate.isEqual(endDate) )
{
// task
}
This is because, isAfterand isBeforeare strict.
: :
if(!todayDate.isAfter(endDate) && !todayDate.isBefore(startDate))
{
}
isAfter, endDate .
isBefore, startDate .