Expression representing "Today" | Community
Skip to main content
August 1, 2024
Solved

Expression representing "Today"

  • August 1, 2024
  • 2 replies
  • 593 views

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!

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by DavidRoss91

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.

2 replies

Indra-2
Community Advisor
Community Advisor
August 5, 2024

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

DavidRoss91
Community Advisor
DavidRoss91Community AdvisorAccepted solution
Community Advisor
August 13, 2024

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.

brekrut
Adobe Employee
Adobe Employee
August 13, 2024

@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-dynamic-segment