11
Answers

Date Difference

Ask a question
Amruta Kirdat

Amruta Kirdat

13y
2.7k
1
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)