add-days-to-dateTime

Adds the specified number of days to a given date and time.

Syntax

    add-days-to-dateTime(strDateTime1, days)

Parameters

strDateTime1 is a string that represents the date and time and is specified in the format yyyy-mm-ddThh:mm:ssZ. 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 and time. A negative number for days subtracts days from the given date and time.

Returns

A string value in the format yyyy-mm-ddThh:mm:ssZ.

Example

The following expression returns a dateTime value of 2000-10-30T11:12:00Z:

add-days-to-dateTime("1999-11-28T11:12:00Z",337)

// Ethnio survey code removed