Created
May 19, 2019 22:08
-
-
Save ArCiGo/b0bfb752b9db74dd64c936d929a453c6 to your computer and use it in GitHub Desktop.
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 DATENAME(weekday, GETDATE()); | |
GO | |
/** Output **/ | |
------------------------------ | |
Sunday | |
SELECT DATEDIFF(dd, '20170426', '20170725'); | |
GO | |
/** Output **/ | |
----------- | |
90 | |
SELECT DATEFROMPARTS(2017, 04, 26); | |
GO | |
/** Output **/ | |
---------- | |
2017-04-26 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment