scalar

DATEADD

T-SQL adds a number of specified date units; month-end adjustment can occur. Example target: SQL Server (T-SQL). No tables or extensions required.

Formal Syntax & Structure

sql syntaxsql
DATEADD(datepart,number,date)

Working Example

Example Snippetsql
SELECT CONVERT(varchar(10), DATEADD(day, 2, CAST('2024-02-28' AS date)), 23);
SQL Reference