Expand my Community achievements bar.

SOLVED

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

Avatar

Level 1

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

Topics

Topics help categorize Community content and increase your ability to discover relevant content.

1 Accepted Solution

Avatar

Correct answer by
Employee

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-adv...) followed by another check where in the hour will be checked https://experienceleague.adobe.com/en/docs/journey-optimizer/using/orchestrate-journeys/about-journe... 

View solution in original post

3 Replies

Avatar

Correct answer by
Employee

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-adv...) followed by another check where in the hour will be checked https://experienceleague.adobe.com/en/docs/journey-optimizer/using/orchestrate-journeys/about-journe... 

Avatar

Level 1

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?

Avatar

Level 1

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