<p>I'm in javascript, running this in the console </p>

<pre><code>d = new Date();             
d.setMonth(1);
d.setFullYear(2009);
d.setDate(15);                                  
d.toString();
</code></pre>

<p>outputs this:</p>

<pre><code>"Sun Mar 15 2009 18:05:46 GMT-0400 (EDT)"
</code></pre>

<p>Why would this be happening? It seems like a browser bug.</p>

```
```
d = new Date();
d.setDate(15);                    
d.setMonth(1);
d.setFullYear(2009);                                                                 
d.toString();
```
```
This works.