$addDate
Last updated
Last updated
$addDate
operator lets you modify date and datetimes. You can use this in any .
This operator can work on both epoch timestamps as well as datetime objects.
<date_like_obj>
It can also be a Magical Autocomplete. The epoch timestamp can be both in seconds as well as millisecond.
true
unit
It can be either DAY or WEEKS
true
<change_difference>
The value by which you want to add or substract days/weeks from the startDate
.
true
integer
- If the startDate is of type integer (both milliseconds and seconds)
datetime
- If the startDate is of type datetime
The above expression returns 1709883318.
The above expression returns 1709883318000.
Let's say we have declared a variable temp
in our API flow, which has a value of 6 currently.
The above expression would resolve to a result of datetime(2024, 03, 27).
The <date_like_obj>
expression can be any valid as long as it resolves to a epoch timestamp (seconds or milliseconds), or to datetime objects.
The <change_difference>
expression can be any valid as long as it resolves to a number.