Date without time in long format

I’m able to get date in long format with time

new Date().getTime()

which return long with time

1626429691945

is it possible to return date in long without hour , minute ,seconds

Answer

console.log(new Date(new Date().toDateString()).getTime())