日期:2014-05-17 浏览次数:20743 次
??????????? //显示时间???
??????????? DateTime now = DateTime.Now;
??????????? DateTime end = Convert.ToDateTime("2011-12-04 00:00:00");
??????????? TimeSpan ts1 = new TimeSpan(now.Ticks);
??????????? TimeSpan ts2 = new TimeSpan(end.Ticks);
??????????? TimeSpan ts = ts1.Subtract(ts2).Duration();
??????????? string? dateDiff = ts.Days.ToString() + "天" + ts.Hours.ToString() + "小时"
??????????????????????????? + ts.Minutes.ToString() + "分";
???????????