title: javascript date + 7 days
body: <p>What's wrong with this script?</p>
  
  <p>When I set my clock to say 29/04/2011 it adds <strong>36/4/2011</strong> in the week input! but the correct date should be <strong>6/5/2011</strong></p>
  
  <pre><code>var d = new Date();
  var curr_date = d.getDate();
  var tomo_date = d.getDate()+1;
  var seven_date = d.getDate()+7;
  var curr_month = d.getMonth();
  curr_month++;
  var curr_year = d.getFullYear();
  var tomorrowsDate =(tomo_date + "/" + curr_month + "/" + curr_year);
  var weekDate =(seven_date + "/" + curr_month + "/" + curr_year);
  {
  jQuery("input[id*='tomorrow']").val(tomorrowsDate);
  jQuery("input[id*='week']").val(weekDate);
      }
  </code></pre>