Day number is
Merges different content depending on whether a date falls on a given day of the year.
Syntax
There are two ways to use this tag.
Check a date you supply:
{{#ifDayNumberIs date value}}true content{{else}}false content{{/ifDayNumberIs}}
Check today's date:
{{#ifDayNumberIs value}}true content{{else}}false content{{/ifDayNumberIs}}
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 day of the year to check for, from 1 to 366. |
Note: When you leave the date out, "today" means today in your account's time zone, not UTC. The number is the day of the YEAR, from 1 to 366, not the day of the month. 30 January is day 30, and 1 February is day 32.
Examples
A. Checking a contact's date
{{#ifDayNumberIs Contact.signupDate "30"}}Happy anniversary{{else}}Thanks for being with us{{/ifDayNumberIs}}
Shows the anniversary note when the contact signed up on day 30 of the year.
B. Checking today
{{#ifDayNumberIs "30"}}Happy anniversary{{else}}Thanks for being with us{{/ifDayNumberIs}}
Shows the anniversary note on day 30 of the year.
If the date or the value cannot be read, it is not treated as a match, so false content is shown.