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

Share

Share

Rate