title: Convert milliseconds to Date format in Javascript
body: <p>I set a Date string to milliseconds to start from midnight like:</p>
  
  <pre><code>var date = new Date("2017-12-14").setUTCHours(0,0,0,0)
  </code></pre>
  
  <p>Now the <strong>date = 1513209600000; i.e., Thu Dec 14 2017 00:00:00</strong>. This is exactly how I want to start my date from midnight or start of the day, i.e., midnight.</p>
  
  <p>But when I'm trying to convert this timestamp to again in Date object, it is not retaining the hour format, like:</p>
  
  <pre><code>var dateObj = new Date(date); // Thu Dec 14 2017 05:30:00 GMT+0530 (IST)
  </code></pre>
  
  <p>I want this <strong>dateObj</strong> to have the date and time to start from midnight. Can anyone please suggest what exactly I am doing wrong here? Thanks in advance.</p>