DateTime dt1 = new DateTime(2005,5,6,15,36,05);
DateTime dt2 = new DateTime(2005,6,13,11,32,05);
System.TimeSpan st = dt2.sSubtract(dt1);
this.TextBox1.Text = st.Days.ToString()+"天"
+st.Hours.ToString()+"小时"
+st.Minutes.ToString()+"分钟"
+st.Seconds.ToString()+"秒";
郁闷...Excle是.
=MOD(B1-A1,1) (单元格格式设置为“时间”)
或
="2008-8-8"-"2002-5-1"