If today in date range
Conditionally merges different content depending on if the current date is between the start and end date.
SYNTAX
{{#ifTodayDateRange startDate endDatae}}true content{{else}}false content{{/ifTodayDateRange}}
PARAMETERS
Name | Type | Required | Description |
---|---|---|---|
Start Date | Datetime | Required | Start date of the date range. |
End Date | Datetime | Required | End date of the date range. |
Time Zone | Text | Optional | Time zone for which the date-time will be displayed. |
For a list of time zones, refer to the Microsoft Windows Time Zone List.
EXAMPLES
The examples below are based on the following sample content:
{{#ifTodayDateRange “10/1/2017” “10/31/2017” “Mountain Standard Time”}} Flash sale going on now! {{else}} Look for our flash sales in future emails. {{/ifTodayDateRange}}
A. Today’s date is 10/15/2017
Flash sale going on now!
B. Today’s date is 9/30/2017
Look for our flash sales in future emails.