title: JS Date issues with adding 1 week
body: <p>I am having an issue and was wondering if someone could give me a little insight as to why. The following code is working to add one week to a date:</p>
  
  <pre><code>while (c.getStamp() &lt; b.getStamp()) {
      var f = this.getWeek(c);
      e.push(f);
      c = (c.getStamp() + 604800).toDate();
  }
  
  ...
  
  Date.prototype.getStamp = function() {
      return Math.round(this.getTime() / 1e3);
  };
  
  Number.prototype.toDate = function() {
      return new Date(this * 1e3);
  };
  </code></pre>
  
  <p>I'm trying to get the following to work but it creates a continuous loop:</p>
  
  <pre><code>while (c.getStamp() &lt; b.getStamp()) {
      var f = this.getWeek(c);
      e.push(f);
      c = new Date(c.getFullYear(), c.getMonth(), c.getDate + 7, 0, 0, 0);
  }
  </code></pre>
  
  <p>Where <code>c = JS Date, ie 05/01/12</code> and <code>b = JS Date, ie 05/31/12</code></p>