title: Javascript Date: next month
body: <p>I've been using Javascript's Date for a project, but noticed today that my code that previously worked is no longer working correctly. Instead of producing Feb as expected, the code below produces March. </p>
  
  <p>My code looks something like this: </p>
  
  <pre><code>current = new Date();
  current.setMonth(current.getMonth()+1); //If today is Jan, expect it to be Feb now
  </code></pre>
  
  <p>This code worked everyday up until today. Is this a Javascript bug or am I going about this the wrong way? </p>