How to calculate the difference in months between two dates in C#?
Is there is equivalent of VB\'s DateDiff() method in C#. I need to find difference in
DateDiff()
You could do
if ( date1.AddMonths(x) > date2 )