title: set hours and get ms with Date in js
body: <p>how can I get the ms of the day at midnight with vanilla js ; something like this:</p>
  <pre><code>const today = new Date().setHours(0,0,0,0)
  
  return  today.getTime()
  
  </code></pre>
  <p>And as well how can i get the ms of just the current hours and minutes . Something like</p>
  <pre><code>const hours = new Date().gethours()
  const minutes = new Date().getminutes()
  const now = (hours + minutes) in millisecond  
  
  </code></pre>
  <p>thanks</p>