Click here to Skip to main content
11,933,617 members (57,811 online)
Click here to Skip to main content
Add your own
alternative version


1 bookmarked

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:


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.

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