Abstract

This code snippet adds a certain number of minutes/hours/days/weeks/months to a Date field.

Logic

Access the date and add the number of minutes/hours/days/weeks/months to it.

Snippet 

{{ <Date field> | dateadd(<Number of units>,"<Unit>") }}

Placeholders

PlaceholderDescriptionExample
<Date Object>Access a date fieldissue.fields.created
<Number of units>
The number of units to be added5
<Unit>is one of "days", "hours", "weeks" or "months" (or their equivalent: "d", "h", "w", "m")days

Examples

The output of the code snippet is a Moment.js date object which you could use to:

References

Related articles


Related issues