How can I calculate the numbers of month between two dates in C#
<p>Now I am working with asp.net and C#<br>
    I would like to know how to calculate the numbers of Month between two dates.Is there any method to calculate it in C#.</p>

<blockquote>
  <p>Eg1.    Date1 = "2011/11/01"<br>
              Date2 = "2012/02/01"<br>
  Result. Numbers of Month =3  </p>
</blockquote>

<pre><code> Eg2.  Date1 = "2012/01/31"
       Date2 = "2012/02/01"  
Result. Numbers of Month =1

 Eg3.  Date1 = "2012/01/01"  
       Date2 = "2012/02/28"
 Result. Numbers of Month =1
</code></pre>

<p>The result will strange .It doesn't take the days of the month into account.  But I would like to get this result because of system requirement. </p>

<p>With regards.</p>
