private int DateDiff(DateTime dateStart, DateTime dateEnd) { DateTime start = Convert.ToDateTime(dateStart.ToShortDateString()); DateTime end = Convert.ToDateTime(dateEnd.ToShortDateString()); TimeSpan sp = end.Subtract(start); return sp.Days; }
原文地址:https://www.cnblogs.com/chenyanbin/p/12148766.html
时间: 2024-10-13 23:48:23