title: Months difference between two dates
body: <p>I have two dates in the format <code>a = Timestamp('2022-07-01 00:00:00')</code> and the other date is in same format <code>b = Timestamp('1993-09-01 00:00:00')</code></p>
  
  <p>So I'm trying to find number of months difference between these two, The way I did is </p>
  
  <pre><code>relativedelta(a,b).years * 12
  </code></pre>
  
  <p>Which gives the value <code>336</code>, but the actual difference is <code>346</code>. Please let me know where I went wrong help me correct it.</p>