Click here to Skip to main content
12,763,360 members (35,625 online)
Click here to Skip to main content

Stats

0 views
Posted 28 Dec 2012

How to find Number of Days in Sql Server?

, 28 Dec 2012 CPOL
try below code:-SELECT DATEPART(day, DATEADD(s,-1,DATEADD(mm,DATEDIFF(m,0,'2011-02-25')+1,0)))
No downloads associated with this content

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

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

Share

About the Author

ssd_coolguy
Software Developer
India India
No Biography provided

You may also be interested in...

Pro
Permalink | Advertise | Privacy | Terms of Use | Mobile
Web02 | 2.8.170217.1 | Last Updated 29 Dec 2012
Article Copyright 2012 by ssd_coolguy
Everything else Copyright © CodeProject, 1999-2017
Layout: fixed | fluid