获取某一月的天数 and 获取本周的周一

-- 获取某一月的天数 --思路: 今天加上下个月的天数 - 今天的天数 = 这个月的天数 --方法: 利用系统函数本身去判断. declare @time select Datediff(dd,getdate(),dateadd(mm,1,getdate())) select DATEPART(m , '2008-07-01') as 月份,datediff(dd , '2008-07
相关文章
相关标签/搜索