SOLVED

Email script token with date comparison

Go to solution
Anonymous
Not applicable

Email script token with date comparison

Is is possible with Velocity scripting inside an email script token to look on the system date and show content if it is between date ranges. The system date would need to be converted to be UTC+10:00.

For example:

#if system date is between November 23, 2017 and November 25, 2017:

> Show content 1

#elseif system date is between November 26, 2017 and November 29, 2017:

> Show content 2

#else:

> Show content 3

#end

Tags (2)
1 ACCEPTED SOLUTION

Accepted Solutions
SanfordWhiteman
Level 10 - Community Moderator

Re: Email script token with date comparison

3 REPLIES 3
SanfordWhiteman
Level 10 - Community Moderator

Re: Email script token with date comparison

This is crazy -- I'm pubbing a blog post tonight on this. Will link to it!

SanfordWhiteman
Level 10 - Community Moderator

Re: Email script token with date comparison

Anonymous
Not applicable

Re: Email script token with date comparison

Thank you. Such a thorough blog post. That should have everyone covered!