If date not in date range
Conditionally merges different content depending on if the date provided is between the start and end date.
SYNTAX
{{#ifNotInDateRange date startDate endDatae}}true content{{else}}false content{{/ifNotInDateRange}}
PARAMETERS
Name | Type | Required | Description |
---|---|---|---|
Date | Datetime | Required | Date to be evaluated. |
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:
{{#ifNotInDateRange Contact.ReservationDate “10/1/2017” “10/31/2017”}} It looks like you picked a great time to visit! {{/ifNotInDateRange}}
A. Contact’s ReservationDate has the value of 10/15/2017
It looks like you picked a great time to visit
B. Contact’s ReservationDate has the value of 9/30/2017
No content is merged