If today in date range

Conditionally merges different content depending on whether today falls between two dates. Use it for a sale window, a seasonal message, or anything that should appear only for a stretch of time, without having to edit the campaign when the window closes.

Syntax

{{#ifTodayDateRange startDate endDate timezone}}true content{{else}}false content{{/ifTodayDateRange}}

Parameters

Name Type Required Description
Start Date Date Required The first day of the range.
End Date Date Required The last day of the range.
Time Zone Text Optional The time zone used to decide what today is. Your account's default is used when you leave it out. For the values you can use, see the Microsoft Windows time zone list.
Note: Both dates are included in the range, so a range of 1 October to 31 October covers the whole of both days.
Note: This checks today's date. To check a date held in a contact's field, use If date in date range instead.

Examples

The examples below are based on the following sample content:

{{#ifTodayDateRange "10/1/2026" "10/31/2026" "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/2026

Flash sale going on now!

B. Today's date is 9/30/2026

Look for our flash sales in future emails.

Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.

Still need help? Contact Us Contact Us