Technical Article

Return The Number Of Days In Any Given Month

,

Based on user time locale/gregorian time

select datediff(dd, DATEADD(mm, DATEDIFF(mm,0,getdate()), 0), dateadd(ms,-3,DATEADD(mm, DATEDIFF(m,0,getdate()  )+1, +1)))

Rate

You rated this post out of 5. Change rating

Share

Share

Rate

You rated this post out of 5. Change rating