today.setSeconds(0)to force the time field to match the timefield in all the term start and end dates. This means that you'll always be comparing just dates.