You would like to programmatically determine what the date was thirty days ago.
Add or Subtract from a DateTime
DateTime to add or subtract from
Use https://strftime.org/ for various options
Days to add or subtract
Integer value for how many days to add or subtract.
Hours to add or subtract
Integer value for how many hours to add or subtract.
Microseconds to add or subtract
Integer value for how many microseconds to add or subtract.
Minutes to add or subtract
Integer value for how many minutes to add or subtract.
Months to add or subtract
Integer value for how many months to add or subtract.
Seconds to add or subtract
Integer value for how many seconds to add or subtract.
Years to add or subtract
Integer value for how many years to add or subtract.
Inputs:
DateTime to add or subtract from: {{ now("UTC","%m-%d-%Y") }}Days to add or subtract: 30
{{ now("UTC","%m-%d-%Y") }}
The rest of the inputs in this example are blank.
Result from Example 1 (if run on 04/16/2025):
Last updated 8 months ago
Was this helpful?
"2025-05-16T00:00:00+00:00"