摘要: //C#里内置的DateTime基本上都可以实现这些功能,巧用DateTime会使你处理这些事来变轻松多了//今天 DateTime.Now.Date.ToShortDateString();//昨天,就是今天的日期减一 DateTime.Now.AddDays(-1).ToShortDateString();//明天,同理,加一 DateTime.Now.AddDays(1).ToShortDa... 阅读全文
posted @ 2010-05-14 17:04 海军 阅读(573) 评论(0) 推荐(1) 编辑