Created
August 19, 2016 09:32
-
-
Save wijhuang/cfb388e79a31060c623719486c9aa66a to your computer and use it in GitHub Desktop.
SQL Server Date Add Function
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
--Reference | |
--http://www.w3schools.com/sql/func_dateadd.asp | |
--http://stackoverflow.com/questions/113045/how-to-return-the-date-part-only-from-a-sql-server-datetime-datatype | |
--SQL Server DATE ADD Function | |
--Syntax DATEADD(<datepart>,<value>,<date>) | |
SELECT DATEADD(DAY,1,'2016-08-19') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment