title: new Date(year, month, date) in node js is automatically getting converted to UTC timezone
body: <pre><code>    var dateInCST; //Getting CST date as input.
  
      /*Triming the time part and retaining only the date.*/
      var onlyDateInCST = new Date(dateInCST.getUTCFullYear(), dateInCST.getUTCMonth(), dateInCST.getUTCDate()); 
  
      console.log(onlyDateInCST);
  </code></pre>
  
  <p>I'm in +5:30 i.e IST time zone.</p>
  
  <p>During the date creation by providing year, month and date, the node js is treating it as IST and deducting -5:30 automatically.</p>
  
  <p>Node js is converting the date to UTC automatically by considering the date to be at server timezone. 
  But in browser I'm getting proper CST date without time.</p>
  
  <p>Example : </p>
  
  <pre><code>var today = new Date(2017, 2, 7);
  console.log(today);
  </code></pre>
  
  <p>The date should be <em>2017-03-07T00:00:00.000Z</em>. 
  But node js deducts the server time zone difference between UTC i.e +5:30 from this date and 
  the date object becomes <em>2017-03-06T18:30:00.000Z</em></p>
  
  <p>Why the above code is behaving different in Node js from browser. Any workaround for this?</p>
  
  <p>Edit : </p>
  
  <pre><code>var date = new Date();
  function createDateAsUTC(date) {
      return new Date(Date.UTC(date.getFullYear(), date.getMonth(), date.getDate(), date.getHours(), date.getMinutes(), date.getSeconds()));
  }
  console.log(date);
  console.log(createDateAsUTC(date));
  </code></pre>
  
  <p><strong>NodeJs output</strong> :</p>
  
  <p>2017-03-08T12:28:16.381Z</p>
  
  <p>2017-03-08T17:58:16.000Z</p>
  
  <p><strong>Browser Output</strong> : </p>
  
  <p>Wed Mar 08 2017 17:58:17 GMT+0530 (India Standard Time)</p>
  
  <p>Wed Mar 08 2017 23:28:17 GMT+0530 (India Standard Time)</p>
  
  <p>There is difference between Node js behaviour and browser.
  The server(local) time was 17:58.</p>
  
  <p>What's the difference between new Date(?,?,?,?,?,?) and new Date(Date.UTC(?,?,?,?,?,?))  ?</p>