Click here to Skip to main content
11,645,889 members (66,322 online)
Click here to Skip to main content
Articles » Database » Database » General » Downloads
Add your own
alternative version

Tagged as

SQL Get the last date of the month

, 17 Nov 2009 CPOL 11.1K 5
declare @Date datetimeset @Date = '2009/10/17'Select dateadd(day, 0 - day(dateadd(month, 1 , @Date)), dateadd(month, 1 , @Date))
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

Asif Mushtaq
Software Developer (Senior)
Pakistan Pakistan
No Biography provided

You may also be interested in...

| Advertise | Privacy | Terms of Use | Mobile
Web02 | 2.8.150731.1 | Last Updated 18 Nov 2009
Article Copyright 2009 by Asif Mushtaq
Everything else Copyright © CodeProject, 1999-2015
Layout: fixed | fluid