title: Get php date and use it in javascript with date()
body: <p>I've noticed that in JavaScript, when creating a Date, months are zero based.</p>
  
  <p>So I input (from a mysql php call) a value like "2019, 1, 1".
  I get this value via: </p>
  
  <pre><code>date("Y, m, d",strtotime($mysqlcall['recorded']))
  </code></pre>
  
  <p>So input that value:</p>
  
  <pre><code>var foo = new Date(2019, 1, 1)
  </code></pre>
  
  <p>but it produces February 1st 2019. How can I fix that problem?</p>