DateTime dt1 = DateTime.Parse(createDate);
DateTime dt2 = DateTime.Parse(updateDate);
int totalMonth = (dt2.Year - dt1.Year) * 12 + (dt2.Month - 1) - dt1.Month;
(adsbygoogle = window.adsbygoogle || []).push({});
来源:https://www.02405.com/archives/7312