title: How to convert current date to timestamp in Angular 2/4
body: <p>I want to convert current date to timestamp.Suppose todays date is 26/4/2019 , then i am doing like this.</p>
  
  <pre><code>const current = new Date();
  const timestamp = current.getTime();
  </code></pre>
  
  <p>but this gives me 1556532767266. 
  When i am getting date from this , it shows me 'Mon Apr 26 2019 10:12:47' in UTC and 'Mon Apr 26 2019 15:42:47' in local.
  but i want in this '<strong>Mon Apr 26 2019 00:00:00</strong>', which is night 12Am</p>
  
  <p>Can anyone please help me how to get like this.</p>