Expand my Community achievements bar.

Join us on September 25th for a must-attend webinar featuring Adobe Experience Maker winner Anish Raul. Discover how leading enterprises are adopting AI into their workflows securely, responsibly, and at scale.
SOLVED

AJO NowWithDelta using a field to set the number of days

Avatar

Level 1

This is a two part question. I am trying to use nowWithDelta to compare todays date to another date field and the difference between the two dates should be a second field (integer). My two questions are:

 

1. Is it possible to do arithmetic within nowWithDelta or is there another way to achieve this? nowWithDelta(10-7,"days"). 

2. Is it possible to use a field within nowWithDelta or is there another way to achieve this? nowWithDelta(#field, "days")

 

The end goal is to create an expression that does the following. I am open to other ways to set this up using something other than nowWithDelta:

GenericDateField > nowWithDelta(secondDatefield - 7, "days")

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

@BenWood I don't see a way to do this using nowWithDelta. Can you provide an example of the journey scenario condition that you wanted to check?

Thanks, Sathees

View solution in original post

2 Replies

Avatar

Correct answer by
Community Advisor

@BenWood I don't see a way to do this using nowWithDelta. Can you provide an example of the journey scenario condition that you wanted to check?

Thanks, Sathees

Avatar

Administrator

Hi @BenWood,

Were you able to resolve this query with the given solution or was this something you were able to figure out on your own or do you still need help here? Do let us know.

Thanks!



Sukrity Wadhwa