DateTime d1 = new DateTime(2002, 1, 1);
DateTime d2 = new DateTime(2000, 10, 1);
int M = Math.Abs((d1.Year - d2.Year));
int months = ((M * 12) + Math.Abs((d1.Month - d2.Month)));
Join the conversation! Your thoughts help the community grow.
Sign in to leave a comment
It is the same account you read, post and publish with — and you will come straight back to this page.

narayan bankePosted Aug 20, 2010, 1:19 AM
Good Day