Extract Values from incorrect Js Date Object?
<p>I've build a function which checks if a date parts <em>values</em> are valid : </p>

<p><em>Bad</em> value  example : </p>

<pre><code>new Date(2012,3,44) = 
Mon May 14 2012 00:00:00 GMT+0300 (Jerusalem Daylight Time)
</code></pre>

<p><a href="http://jsbin.com/ihibag/3/edit" rel="nofollow"><strong>Here</strong></a> is the function ( its arguments are being sent by me <code>separately</code> !)</p>

<pre><code>function isDate(year, month, day)
{
   ...
}

alert(isDate( 2001,2,29));
</code></pre>

<p>However , I have a problem.</p>

<p>If I have an invalid date object like :  <code>var t= new Date(2001,2,44)</code>  : 
And I want to send it to my function , I need to extract its values.</p>

<p><em>How</em> can I extract the <code>44</code> value  + <code>2</code> value ?</p>

<pre><code>t.getDate() //13
t.getMonth() //3   (days went from march to april)
</code></pre>

<p>any help ?</p>
