Created
October 18, 2020 01:08
-
-
Save stevesohcot/0f9329b8fed3e48adf3449355f452557 to your computer and use it in GitHub Desktop.
SQL First of the Month
This file contains 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
SELECT DATEADD(month, DATEDIFF(month, 0, @mydate), 0) AS FirstOfMonth |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment