SyntaxFix
Write A Post
Hire A Developer
Questions
You can probably use
new Date().setUTCHours(0,0,0,0)
if you need the value only once.