Wednesday, March 12, 2008

How can I find the last day of the month

SELECT DATEADD(ms, -5, DATEADD(mm, DATEDIFF(m, 0, GETDATE()) + 1, 0))

No comments: