Category:

Date and time

Adds days to the date.

Syntax

add_date_time(
  x DateTime,
  y Numeric
): DateTime

Parameters

x is an initial DateTime value.

y is a number of days to add. It can be an integer or floating-point number. For example, 2.5 means two days and 12 hours.

Return value

Type: DateTime.

Examples of using

add_date_time(date, 1.5)