Click here to Skip to main content
12,445,916 members (60,465 online)
Click here to Skip to main content
Add your own
alternative version

Stats

5.2K views
1 bookmarked
Posted

Get days of a month in SQL

, 3 Feb 2010 CPOL
Rate this:
Please Sign up or sign in to vote.
select days_of_month=day(dateadd(mm,-1,'12-feb-2010'),-1) :laugh:
select days_of_month=day(dateadd(mm,-1,'12-feb-2010'),-1)
Laugh | :laugh:

License

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

Share

About the Author

rajivlipu
Software Developer (Junior) LUCID INFOTECH
India India
No Biography provided

You may also be interested in...

Pro
Pro

Comments and Discussions

 
QuestionWhat is that? Pin
PeterMoon23-Jan-10 9:05
memberPeterMoon23-Jan-10 9:05 
QuestionElaborate? Pin
aspdotnetdev23-Jan-10 4:14
memberaspdotnetdev23-Jan-10 4:14 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

| Advertise | Privacy | Terms of Use | Mobile
Web02 | 2.8.160811.3 | Last Updated 3 Feb 2010
Article Copyright 2010 by rajivlipu
Everything else Copyright © CodeProject, 1999-2016
Layout: fixed | fluid