setDays

Last update: 2021-06-02
  • Created for:
  • Experienced
    Developer

Sets the day of a date time or date time only. For example, if you want to wait until a certain day of the month, you can force the day.

Category

Date

Function syntax

setDays(<parameter>)

Parameters

Parameter Type
date time dateTime
date time without considering time zone dateTimeOnly
days integer

Signatures and returned type

setDays(<dateTime>,<days>)

Returns a datetime.

setDays(<dateTimeOnly>,<days>)

Returns a datetime without considering time zone.

Examples

setDays(toDateTime('2010-12-12T01:11:00Z'), 25)

Returns 2010-12-25T01:11:00Z.

setDays(toDateTimeOnly(@{MyEvent.registrationDate}), 1)

On this page