C#日期相减的的方法
DateTime t1 = DateTime.Parse("2005-01-01");
DateTime t2 = DateTime.Parse("2006-01-01");
System.TimeSpan ts = t2 - t1;
int days = ts.Days;
DateTime t1 = DateTime.Parse("2005-01-01");
DateTime t2 = DateTime.Parse("2006-01-01");
System.TimeSpan ts = t2 - t1;
int days = ts.Days;