Help - trying to setFilter using Date

I have been struggling with this exact problem. The fix you suggest @Marcel LeBrun @hello44 does not work. today.setHours(0,0,0,0); gives me an error. “today.setHours is not a function”