Click here to Skip to main content
13,293,369 members (37,850 online)
Click here to Skip to main content
Add your own
alternative version


1 bookmarked
Posted 23 Jan 2010

Get days of a month in SQL

, 3 Feb 2010
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)


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


About the Author

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

You may also be interested in...

Comments and Discussions

QuestionWhat is that? Pin
PeterMoon23-Jan-10 10:05
memberPeterMoon23-Jan-10 10:05 
QuestionElaborate? Pin
aspdotnetdev23-Jan-10 5:14
memberaspdotnetdev23-Jan-10 5: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.

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