title: Converting month name to month number using JavaScript
body: <p>Is there a a better solution than what I have below to convert a month name to a month number using JavaScript or PHP?</p>
  
  <p>I did like this:</p>
  
  <pre><code>$monNum =  date('n',strtotime($staff-&gt;curMonth));
  </code></pre>