How to check if the UTC date greater than today and between certain time (8 and 9 AM?) in Journey Expression | Community
Skip to main content
July 5, 2024
Solved

How to check if the UTC date greater than today and between certain time (8 and 9 AM?) in Journey Expression

  • July 5, 2024
  • 1 reply
  • 943 views

I have to validate if the UTC date from the event is greater than today and falls in between 8 and 9 AM. Thanks and appreciate your assistance

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Mohan_Dugganab

An expression can be used in the condition on the following lines

@{utcTimestampFromEvent} > now()

(If additional time needs to be added, nowWithDelta can be leveraged  https://experienceleague.adobe.com/en/docs/journey-optimizer/using/orchestrate-journeys/building-advanced-conditions-journeys/main-functions-journey/date/functionnowwithdelta) followed by another check where in the hour will be checked https://experienceleague.adobe.com/en/docs/journey-optimizer/using/orchestrate-journeys/about-journey-building/condition-activity#time_condition 

1 reply

Mohan_Dugganab
Adobe Employee
Mohan_DugganabAdobe EmployeeAccepted solution
Adobe Employee
July 5, 2024

An expression can be used in the condition on the following lines

@{utcTimestampFromEvent} > now()

(If additional time needs to be added, nowWithDelta can be leveraged  https://experienceleague.adobe.com/en/docs/journey-optimizer/using/orchestrate-journeys/building-advanced-conditions-journeys/main-functions-journey/date/functionnowwithdelta) followed by another check where in the hour will be checked https://experienceleague.adobe.com/en/docs/journey-optimizer/using/orchestrate-journeys/about-journey-building/condition-activity#time_condition 

Madhav70Author
July 25, 2024

Thank You, cannot use the Time condition condition for the event instead use the UTC Time that is on the incoming event is in the range of 8 and 9 AM. Any suggestion?

Madhav70Author
August 19, 2024

@mohan_dugganab any suggestion on how to validate the UTC datetime attribute in the event lies between 8 and 9 AM please