title: Setting date in nodejs date object shows date as different value
body: <p>When i'm setting up date object using the below statement the output showing different in nodejs. Can you please help me to understand why it is like this. And how i need to pass to print right value.</p>
  
  <pre><code>var date1= new Date(2017,01,01);
  var date2= new Date(2017,01,31);
  console.log("2017-01-01 is printed as ==&gt;",date1);
  console.log("2017-01-31 is printed as ==&gt;",date2);
  </code></pre>
  
  <p>Output</p>
  
  <blockquote>
    <p>2017-01-01 is printed as ==> 2017-01-31T18:30:00.000Z</p>
    
    <p>2017-01-31 is printed as ==> 2017-03-02T18:30:00.000Z</p>
  </blockquote>