日期:2014-05-17 浏览次数:20926 次
DateTime dt1="2012-10-10 0:00:00"; DateTime dt2="2012-10-18 0:00:00"; while (dt1 != dt2) { if (dt1.Month == drDay[i].Month && dtBl.Day == drDay[i].Day) { days++; } dt1.AddDays(1);//这是让dt1加一天吗?? }