摘要:C#里内置的DateTime基本上都可以实现这些功能,巧用DateTime会使你处理这些事来变轻松多了 今天 DateTime.Now.Date.ToShortDateString(); 昨天,就是今天的日期减一 DateTime.Now.AddDays(-1).ToShortDateString(); 明天,同理,加一 DateTime.Now.AddDays(1).ToShortDateStr...
阅读全文
posted @ 2009-05-08 16:44
浙公网安备 33010602011771号