Javascript 30 Nov 2010 plus 3 months equal to 2 Mar 2011
<p>with this script</p>

<pre><code>var d = new Date(2010, 10, 30);
var e = new Date(d.getFullYear(), d.getMonth() + 3, d.getDate());

document.write(d + "&lt;br&gt;" + e);
</code></pre>

<p>why 30 Nov 2010 plus 3 months equal to 2 Mar 2011? not 28 Feb 2011?</p>

<p>30 Nov 2010 and 23 Feb 2011 are the last day of the month.</p>

<p><a href="http://jsfiddle.net/jWh2M/" rel="nofollow">http://jsfiddle.net/jWh2M/</a></p>
