How to determine one year from now in Javascript
<p>I'm trying to get one year from now's date, and it's not working.</p>

<p>JS:</p>

<pre><code>var now = new Date();

var oneYr = new Date();
oneYr.setYear(now.getYear() + 1);
$("#yearFromNow").append(oneYr.toString());

var oneMonth = new Date();
oneMonth.setMonth(now.getMonth() + 1);
$("#monthFromNow").append(oneMonth.toString());
</code></pre>

<p>Output:</p>

<pre><code>one mo. = Thu Dec 22 112 15:16:01 GMT-0500 (Eastern Standard Time)

one yr. = Sun Jan 22 2012 15:16:01 GMT-0500 (Eastern Standard Time)
</code></pre>

<p>The year has <code>Dec 22 112</code> - ??  The month is correctly displaying <code>Jan 22 2012</code>.</p>

<p>If you want to tinker with it, <a href="http://jsbin.com/alezaj/edit#javascript,html,live" rel="nofollow">http://jsbin.com/alezaj/edit#javascript,html,live</a>.  This is in Chrome and Firefox.</p>

<p>Thanks!</p>
