Sampson-Li
Sampson.Li学习经验总结博客 学历代表过去,能力代表现在.学习力代表未来!
摘要: TimeSpan一个很好的时间计算类eg1.DateTime dt1 = DateTime.Now; DateTime dt2 = DateTime.Now.AddDays(-7); TimeSpan ts = dt1 - dt2; int days = ts.Days; //dt1和dt2相差多少天eg2.//编辑月份和系统登录月份是否相等if(Convert.ToDateTime(DateTime.Now.ToShortDateString()).Month==Convert.ToDateTime(this.GetQueryString("sdate"... 阅读全文
posted @ 2011-11-16 09:01 Sampson 阅读(5244) 评论(0) 推荐(0) 编辑