IT Solutions
Search This Blog
Friday, June 4, 2010
How to get last date of a month using sql query
Below statement will return the last date of the current month:
SELECT DAY(DATEADD (m, 1, DATEADD (d, 1 - DAY(GETDATE()), GETDATE())) - 1)
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment