add-days-to-date

Adds the specified number of days to a given date.

Syntax

    add-days-to-date(strDate1, days)

Parameters

strDate1 is a string that represents the date and is specified in the format yyyy-mm-dd. For more information about date and time parameters, see Date and time parameters.

days is a number that holds the number of days to add to the given date. A negative number for days subtracts days from the given date.

Returns

A string value in the format yyyy-mm-dd.

Example

The following expression returns a string of value 2001-10-30:

add-days-to-date("1999-11-28", 337)

// Ethnio survey code removed