Contents Index DATE function [Date and time] DATEDIFF function [Date and time]

ASA SQL Reference
  SQL Functions
    Alphabetical list of functions

DATEADD function [Date and time]


Function 

Returns the date produced by adding a number of the date parts to a date.

Syntax 

DATEADD ( date-partnumeric-expressiondate-expression )

date-part :
year | quarter | month | week | day | hour | minute | second | millisecond

Parameters 

date-part    The date-part to be added to the date..

For more information about date-parts, see Date parts.

numeric-expression    The number of date-parts to be added to the date. The numeric_expression can be any numeric type, but the value is truncated to an integer.

date-expression    The date to be modified.

Standards and compatibility 
Example 
SELECT dateadd( month, 102, '1987/05/02' )

Contents Index DATE function [Date and time] DATEDIFF function [Date and time]