javascript: I have subtracted two dates to get the difference between them, how do I find the number of months between the two dates?
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/2536379/difference-in-months-between-two-dates-in-javascript">Difference in Months between two dates in JavaScript</a>  </p>
</blockquote>



<p>Just don't know how to get the difference in moths between two time or date objects.</p>

<p>My current Code:</p>

<pre><code>    var start_time = plot_data[0][0]; // first array selector gets the pair, second: the time
    var end_time = plot_data[plot_data.length - 1][0];
    var time_range = end_time - start_time;
</code></pre>

<p>this would be nice:</p>

<pre><code>var diff_in_months = time_range.months()?
</code></pre>

<p>=D</p>
