1>
2> -- DATEADD: add or subtract a number of days, months, or years from a specific date.
3>
4>
5> -- Add 12 days to 24th March 1964
6>
7> SELECT DATEADD(dd,12,"24 March 1964")
8>
9> SELECT DATEADD(d,12,"24 March 1964")
10> GO
-----------------------
1964-04-05 00:00:00.000
(1 rows affected)
-----------------------
1964-04-05 00:00:00.000
(1 rows affected)
1>
|