// solution is convert date to time by getTime() start = startDate.getTime(); end = endDate.getTime(); current = date.getTime(); if (start <= current && current <= end) { // do something here }