If date not in date range
Conditionally merges different content depending on whether a date held in a contact's field falls outside two dates. Use it to speak to everyone the promotion period did not cover.
Syntax
{{#ifNotInDateRange date startDate endDate}}true content{{else}}false content{{/ifNotInDateRange}}
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| Date | Date | Required | The date to evaluate, usually a contact field. |
| Start Date | Date | Required | The first day of the range. |
| End Date | Date | Required | The last day of the range. |
Note: Both dates are part of the range, so a date landing on the start or end day counts as inside it and the true content does not show.
Tip: The {{else}} part is optional. Leave it out and nothing merges when the date falls inside the range, as in the example below.
Examples
The examples below are based on the following sample content:
{{#ifNotInDateRange Contact.ReservationDate "10/1/2026" "10/31/2026"}}It looks like you picked a quiet time to visit!{{/ifNotInDateRange}}
A. The contact's ReservationDate has the value 9/30/2026
It looks like you picked a quiet time to visit!
The date falls outside the range, so the true content merges.
B. The contact's ReservationDate has the value 10/15/2026
Nothing is merged, because the date falls inside the range.