Does this help?
The DATEADD() function adds or subtracts a specified time interval from a date.
Syntax: DATEADD(datepart,number,date)
Ex. To add 5 days to an OrderDate:
DATEADD(day,5,OrderDate)
Rev
Quote:
Originally Posted by Gotyour6
I need a SQL function that will display the current date plus 5 days.
Right now the value is source.DTM01
I need it to be source.DTM01 (Plus five days of the value)
So if DTM01 brings in 08202014 then it will be 08252014.
Our SQL guy is out sick and need to write a condition and i am a bit rusty.
|