Avatar

Correct answer by
Community Advisor

Hi ,

In your HTML, you can use Contact Date of delivery to check the start time of your deployment/start of the offer and use a different variable which defines the offer expiry time as below:

var offerStarts = delivery.scheduling.contactDate;

var offerEnds = offerStarts.getHours( )+ 12;

In your delivery, where you have the offer specific content, you can use the if else statement:

If (offerStarts < = offerEnds)

{ display content 1}

else

{display content 2}

Hope this helps.

Thanks,
Anita

View solution in original post