Amruta Kirdat

Amruta Kirdat

  • NA
  • 103
  • 33.6k

Date Difference

Mar 21 2011 1:07 AM
I have two dates and want difference result in months

currently i m using :

dtResult = dtExp.Subtract(dtReg);

                intDays = dtResult.Days;
                months = intDays / 30;


but it is giving wrong ans when there is one month difference....
can anyone help me


thx in advance



Answers (11)