Skip to content

Instantly share code, notes, and snippets.

@wijhuang
Created August 19, 2016 09:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wijhuang/cfb388e79a31060c623719486c9aa66a to your computer and use it in GitHub Desktop.
Save wijhuang/cfb388e79a31060c623719486c9aa66a to your computer and use it in GitHub Desktop.
SQL Server Date Add Function
--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