Skip to main content
Jul 5, 2024 2:31 PM UTC
Solved

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

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.
Mohan_Dugganab
Mohan_DugganabAccepted solution
Adobe Employee
Jul 5, 2024 3:17 PM UTC

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 

3 replies

Mohan_Dugganab
Adobe Employee
Mohan_DugganabAdobe EmployeeAccepted solution
Adobe Employee
Jul 5, 2024 3:17 PM UTC

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 

Translate
Madhav70Author
Jul 25, 2024 3:47 PM UTC

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?

Translate
Madhav70Author
Aug 19, 2024 7:38 PM UTC

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

 

Translate