Skip to main content
All CollectionsAutomationTemplates
Show email sending date plus a few days
Show email sending date plus a few days

Create your smart field to insert a relative date in your communications.

Kolleno Support avatar
Written by Kolleno Support
Updated over a month ago

PROBLEM:

We want to add to our template a sentence that mentions that your customer has 5 days to pay from today, and it should write the date of the deadline.

SOLUTION:

  • First, we need to get today's date by following this guide.

{{ datetime_now }}

It will show something like:

Feb. 26, 2025, 3:29 p.m.

{{ datetime_now|add_days:'5' }}

We now see this:

March 3, 2025, 3:29 p.m.

  • Third, we format the date to show only the abbreviation of the month and remove the time by following the first guide we read:

{{ datetime_now|add_days:'5'|date:"M. d, Y" }}

It gives the following result:

Mar. 03, 2025

Did this answer your question?