This question already has answers here:
You can get the date object and set the hours to be 00:00:00.
let date = new Date(new Date().setHours(0,0,0,0))
It will get the current date but set the hours.
Use this snippet
let date = new Date()
new Date(new Date((new Date()).setMinutes(0)).setSeconds(0))