03 2012 档案
摘要:C#时间操作和字符串转换:实现日期处理(报表查询使用)C#里内置的DateTime基本上都可以实现这些功能,巧用DateTime会使你处理这些事来变轻松多了今天DateTime.Now.Date.ToShortDateString();昨天,就是今天的日期减一DateTime.Now.AddDays(-1).ToShortDateString();明天,同理,加一DateTime.Now.AddDays(1).ToShortDateString();本周(要知道本周的第一天就得先知道今天是星期几,从而得知本周的第一天就是几天前的那一天,要注意的是这里的每一周是从周日始至周六止DateTime.
阅读全文
摘要:SELECT (SELECT count(1) from `cti_interchringlen` where TimeLens > 0 and TimeLens<= 4 and `Date`='2012-01-12' and AgentName ='1004' order by count(1) desc) as '[0-4]',(SELECT count(1 ) from `cti_interchringlen` where TimeLens > 4 and TimeLens<= 6 and `Date`='2
阅读全文