title: how to increment date by giving the number of days in javascript
body: <p>I want to increment dates using JavaScript I used <code>.setDate(1)</code> to increment dates by one day
  but if the date is <code>31/11/2011</code> after increment becomes <code>1/0/2012</code>,</p>
  
  <p>the question is how to increment date by giving the number of days .</p>
  
  <p>js</p>
  
  <pre><code>  newDate.setDate(newDate.getDate()+1);
      alert(newDate.getFullYear()+"-"+newDate.getMonth()+"-"+newDate.getDate());  
  </code></pre>