Rakesh Walia
Wednesday, September 15, 2010
getting number of days in the present month using sql
-- for getting number of days in the present month using sql ------------------------------------
SELECT DAY(DATEADD (m, 1, DATEADD (d, 1 - DAY(GETDATE()), GETDATE())) - 1) As NumDaysInMonth
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment