title: Difference in months between two dates
body: <p>How to calculate the difference in months between two dates in C#?</p>
  
  <p>Is there is equivalent of VB's <code>DateDiff()</code> method in C#. I need to find difference in months between two dates that are years apart. The documentation says that I can use <code>TimeSpan</code> like:</p>
  
  <pre><code>TimeSpan ts = date1 - date2;
  </code></pre>
  
  <p>but this gives me data in Days. <strong>I don't want to divide this number by 30</strong> because not every month is 30 days and since the two operand values are quite apart from each other, I am afraid dividing by 30 might give me a wrong value.</p>
  
  <p>Any suggestions?</p>