I am doing this datediff = (date1 - DateOfDeposit).TotalDays; But this gives the no. of days and I want no.of months.