title: getMonth() in Javascript from format dd/mm/yyyy
body: <p>I have a date in format dd/mm/yyyy and when I try to use <code>getMonth()</code> I get the dd field.
  For example if I have "01/12/2019" it will take 01 as month instead of 12. Is there a way to get the month from this format?</p>
  
  <p>This is my code:</p>
  
  <pre><code>var beginDate = document.getElementById("beginDate").value;
  var month = new Date(beginDate).getMonth();
  </code></pre>
  
  <p>inside <code>beginDate</code> there's <code>"01/10/2019"</code> (October 1st 2019)</p>