标签:
DateTime dtone = Convert.ToDateTime("2015-8-8 06:00:00");
DateTime dtwo = Convert.ToDateTime("2007-6-7 05:00:00");
TimeSpan span = dtone.Subtract(dtwo); //算法是dtone 减去
dtwo
tss.Text = span.Days + "天" + span.Hours + "小时" + span.Minutes +
"分钟" + span.Seconds+"秒" + span.TotalDays;
标签:
原文地址:http://www.cnblogs.com/lishajiejie/p/4730692.html