Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

sql add year to date

//Returns Date time
//Takes where to add (as in year, month, day, etc) to
//Takes how much to add
//Takes a datetime in some different formats
DATEADD(year, 1, '2017/08/25') 
 
PREVIOUS NEXT
Tagged: #sql #add #year #date
ADD COMMENT
Topic
Name
4+6 =