Как рассчитать месяцы между двумя датетимпикерами в C#
Good day everyone please i want to calculate months differences between two date time picker. And i want it to give me an error if it more than one year. the code here is for if the dates choosen has not expired What I have tried: <pre>DateTime reqdt = dtrequest.Value.Date; DateTime retdt = dtreturn.Value.Date; TimeSpan ts = retdt - reqdt; int days = ts.Days; if (days <= 0) { MessageBox.Show("Date Expired"); } else { MessageBox.Show("better"); lbldiff.Text = days.ToString() + "Days";