Pages

Search This Blog

Thursday, June 21, 2007

T-SQL:Last day of the month

SELECT DAY(DATEADD(d, -DAY(DATEADD(m,1,GETDATE())),DATEADD(m,1,GETDATE())))

No comments: