DATEADD
date/time arithmetic, parts, construction or truncation
What changes
- Input
- date/time arguments
- Output or change
- date/time or integer value
- Return type
- The return value data type for this method is dynamic. The return type depends on the argument supplied for date. If the value for date is a string literal date, DATEADD returns a datetime value. If a
Syntax at a glance
DATEADD ( datepart , number , date )
Work example
Build a date boundary or move a timestamp by a known interval.
Use a typed date value, name the datepart, and check month-end behavior for month additions.
Check your work SQL Server 2025 adds bigint support for number, while earlier supported versions use int.
Practice SQL
Open in SQL FlowSELECT DATEADD(day, 7, CONVERT(date, '2026-04-05')) AS next_week;
Open Microsoft Learn for full syntax, permissions, and details for your version.