For AI agents: an index of this documentation is at https://developer.rippling.com/llms.txt. Public pages have a Markdown version at the same URL with .md added.

Skip to main content
index

DATEADD() Function

Use with AI:Rippling AI ChatGPT Claude Cursor

Description​

Adds a specified number of time units to a date or timestamp. Subtract by providing a negative value.

Syntax​

DATEADD(datepart, value, timestamp)

Parameters​

ParameterDescriptionData TypeRequired
unitDate or time part (for example day, month, year)String LiteralYes
amountThe amount argumentIntegerYes
date_or_timestampDate or timestamp valueDate or timestampYes

Accepted datepart values​

Datepart NameDatepart Abbreviation
yearyy, yyyy
monthmm, m
daydd, d
hourhh
minutemi, n
secondss, s

Notes​

  • Unit must be string literal.

Example​

SELECT
DATEADD('day', 7, start_date)
FROM
rippling.employee.Employee
LIMIT
5;