Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.