摘要: 取某月天数:select day(dateadd(month,1,'2012-02-01')-1) --当月天数select day(dateadd(ms,-3,DATEADD(m, DATEDIFF(m,0,getdate())+1,0))) ---当月第一天select dateadd(d,-day(getdate())+1,getdate()) ---当月最后一天select ... 阅读全文
posted @ 2012-12-01 13:24 great wang 阅读(1850) 评论(0) 推荐(0) 编辑