Viewing post 1 (of 1 total)
And why not:
Declare @day DATETIME
Set @day='2011-02-15'
select datediff(day,dateadd(d,1-day(@day),@day),dateadd(m,1,dateadd(d,1-day(@day),@day)))
🙂
June 13, 2011 at 6:50 am
#1337717