通过这样一个方法可以取得两个日期当中的日期数,或者去的多少天以后的时间
DateTime dd1=new DateTime(Int32.Parse(year1),Int32.Parse(m1),Int32.Parse(d1));
DateTime dd2=new DateTime(Int32.Parse(year2),Int32.Parse(m2),Int32.Parse(d2));
TimeSpan ts=dd2.Subtract(dd1);
return ts.Days.ToString();
DateTime dd1=new DateTime(Int32.Parse(year1),Int32.Parse(m1),Int32.Parse(d1));
DateTime dd2=new DateTime(Int32.Parse(year2),Int32.Parse(m2),Int32.Parse(d2));
TimeSpan ts=dd2.Subtract(dd1);
return ts.Days.ToString();