How can I restrict a survey based on number of days between events?

How can I restrict a survey based on number of days between events?

 

By using the datediff function within the Survey Queue logic, you can restrict a survey based on the time between two events.

 

In this example, we want to hide a survey if it has been less than 1 month between events using the following syntax in the 2nd event:

 

datediff ([eligibility_arm_1][date],'today','d')>30

 

 

Note: Within the Survey Queue, fields do not have to be in the same format (YMD, DMY, etc)