摘要:
public class DateExample { public static void Main() { DateTime dt1 = new DateTime(2012, 7, 16); DateTime dt2 = new DateTime(2012, 8, 16); TimeSpan ts = dt2 - dt1;//TimeSpan表示一个时间间隔 Console.WriteLine(ts.ToString()); } }结果是31天。 阅读全文
posted @ 2013-06-30 11:38
a博闻强识
阅读(1051)
评论(0)
推荐(0)

浙公网安备 33010602011771号