Expand my Community achievements bar.

Nomination window for the Adobe Community Advisor Program, Class of 2025, is now open!
SOLVED

Expression representing "Today"

Avatar

Level 1

Hello!

 

how can i achieve this statement startDate since <= Today and endDate >= Today when building a custom rule for an audience in AEP?

 

Thank you!

Topics

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

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

Hi @RaresRo 

This should be achieved by just how you mention: pull in startDate attribute as less than or equal to TODAY and endDate attribute as greater than or equal to TODAY, in the same rule.

View solution in original post

3 Replies

Avatar

Level 5

What is your business use case and requirement for this, can you please elaborate

Avatar

Correct answer by
Community Advisor

Hi @RaresRo 

This should be achieved by just how you mention: pull in startDate attribute as less than or equal to TODAY and endDate attribute as greater than or equal to TODAY, in the same rule.

Avatar

Employee

@RaresRo Please provide the use case you are attempting to solve for.

 

You may be able to use a dynamic segmentation rule comparing a date with 'today'.  Please refer to the following article.

 

https://experienceleague.adobe.com/en/docs/experience-platform/segmentation/tutorials/create-a-dynam...