How to check if the UTC date greater than today and between certain time (8 and 9 AM?) in Journey Expression | Adobe Higher Education
Skip to main content
July 5, 2024
Répondu

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

Ce sujet a été fermé aux réponses.
Meilleure réponse par 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 commentaire

Mohan_Dugganab
Adobe Employee
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 

Madhav70Auteur
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?

Madhav70Auteur
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