Created
October 27, 2017 14:01
-
-
Save garystorey/23fb3ed1310a54c428a770b6fb2e6c11 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
DECLARE @current_date DATE = GETDATE() | |
SELECT EOMONTH (@current_date, 0) AS LastDayOfCurrentMonth | |
SELECT EOMONTH (@current_date, 1) AS LastDayOfNextMonth | |
SELECT EOMONTH (@current_date, -1) AS LastDayOfPrevMonth |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment