DATEADD

Description

This function returns an integer representing the specified datepart of the specified date. (DATEPART in Transact-SQL).

Sample Source Pattern

Syntax

DATEADD (datepart , number , date )  

Examples

Code:

IN -> SqlServer_01.sql
SELECT DATEADD(year,123, '20060731') as ADDDATE;  

Result:

                 ADDDATE|
------------------------+
 2129-07-31 00:00:00.000|

Known Issues

No issues were found.

No related EWIs.

Last updated