title: Adding 0 to months in jQuery date
body: <p>I have a jQuery script which returns the current date into a text box. However, when a month with only one digit is displayed (e.g. 8) I want it to place a 0 before it (e.g. 08) and not place a 0 before it if it has 2 digits (e.g. 11).</p>
  
  <p>How can I do this? I hope you can understand my question. Here is my jQuery code:</p>
  
  <pre><code>var myDate = new Date();
  var prettyDate =myDate.getDate() + '' + (myDate.getMonth()+1) + '' + myDate.getFullYear();
  $("#date").val(prettyDate);
  </code></pre>