How do I reference today's date when creating a sample? | XM Community
Skip to main content
Question

How do I reference today's date when creating a sample?


Forum|alt.badge.img+1

I stored a follow-up survey date in my distribution list and I want to create a sample where the stored date is equals to today’s date. However, none of the date operators seems to be straightforward for me to do so.

 

Is there a way to create a sample based on today’s date without stating a specific date?  (this is because I want to later incorporate this into a scheduled workflow that will run daily)

 

 

2 replies

Shashi
Level 8 ●●●●●●●●
Forum|alt.badge.img+32
  • Level 8 ●●●●●●●●
  • 633 replies
  • January 2, 2024

The most closest you can go is by using in the past 1 days as the filter criteria. But make sure the date filed you are using is in ISO-8601 format, with times in UTC. (I.e., YYYY-MM-DDT-HH:mm:ss+ZZZZ 


Forum|alt.badge.img+1
  • Author
  • 2 replies
  • January 2, 2024
Shashi wrote:

The most closest you can go is by using in the past 1 days as the filter criteria. But make sure the date filed you are using is in ISO-8601 format, with times in UTC. (I.e., YYYY-MM-DDT-HH:mm:ss+ZZZZ 

Thanks! The date stored in my distribution list is piped via embedded data ${date://OtherDate/DS/+1%20day}.  I do not need the time.  The date is shown as 2024-1-2.  Any way I can store the date as 2024-01-02 instead?


Leave a Reply