Month is

Merges different content depending on whether a date falls in a given month.

Syntax

There are two ways to use this tag.

Check a date you supply:
{{#ifMonthIs date value}}true content{{else}}false content{{/ifMonthIs}}

Check today's date:
{{#ifMonthIs value}}true content{{else}}false content{{/ifMonthIs}}

The difference is simply how many values you give it. With two, it checks the date you pass. With one, it checks today.

Parameters

Name Type Required Description
Date Date Optional The date to check. Leave it out to check today instead.
Value Number Required The month to check for, from 1 for January to 12 for December.
Note: When you leave the date out, "today" means today in your account's time zone, not UTC. Your email still sends normally whatever the values are.

Examples

A. Checking a contact's date

{{#ifMonthIs Contact.signupDate "1"}}Welcome, new year!{{else}}Welcome!{{/ifMonthIs}}
Shows the January greeting when the contact signed up in January.

B. Checking today

{{#ifMonthIs "1"}}Welcome, new year!{{else}}Welcome!{{/ifMonthIs}}
Shows the January greeting during January.

If the date or the value cannot be read, it is not treated as a match, so false content is shown.
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