Specifying date and time in conditions

Datetime operators

is before

"is before" operator works by checking if the value on the left-hand side is "before" the value on the right-hand side. 

For example, in the screenshot above, the condition will match if order creation time is before "30 days ago relative to current time" i.e, where order creation time is more than 30 days old.

is after

"is after" operator works by checking if the value on the left-hand side is "after" the value on the right-hand side. 

For example, in the screenshot above, the condition will match if order creation time is after "30 days ago relative to current time" i.e, where order creation time is in last 30 days.

Specifying DateTime value

When specifying the date and time in the condition, you could use relative date-time or absolute date time.

Relative

You could use relative dates like -- "30 minutes ago", "2 weeks ago", "1 month ago", "3 months ago", "in 2 days", "tomorrow". It works by calculating the absolute time by manipulating the current time. 
For example, if you specify "30 days ago", it will translate to "current system time - 30 days". So whenever the workflow is executed we'll first calculate the current system time and then apply the relative date specified.

Absolute

You could also specify the absolute date in the following supported formats:
  • 2021-01-09 (just the date)
  • 2021/01/09 00:04:00 (date and time)
  • 28 May 2021 09:00 am -0700 (date, time along with timezone)

If the timezone is not specified, the default assumption is to use the UTC timezone.

Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.