Click here to Skip to main content
15,890,438 members
Articles / Database Development / SQL Server

Get days of a month in SQL

Rate me:
Please Sign up or sign in to vote.
2.00/5 (1 vote)
3 Feb 2010CPOL 8.3K   1  
select days_of_month=day(dateadd(mm,-1,'12-feb-2010'),-1) :laugh:

Views

Daily Counts

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Software Developer (Junior) LUCID INFOTECH
India India
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions