Use Liquid Tags to Format Dates in Email

We use Liquid as the template language.


if you do the "Edit Email" or use the menu or the Block called "Block settings" it will let you edit the code for the email and you'll see the {{ tags like this }} which you can modify.

To add date formatting add a | to the tag (ie {{date | %a %e %b %Y }}

Day

Day

Format Output Liquid date filter arguments
Full name Thursday

%A


Shortened name Thu %a
Number with leading 0 09 %d
Number without leading 0 9 %e
Month
Format Output Liquid date filter arguments
Full name March

%B


Shortened name Mar %b
Number with leading 0 03 %m
Number without leading 0 3 %-m
Year
Format Output Liquid date filter arguments
Full year 2024

%Y


Shortened year 24 %y

FULL EXAMPLE:
You could try something like replacing the default date/time:
{{ task.1100706.date_and_time }}
with:
{{ task.1100706.date_and_time | "%B %e, %y" }}

That would change:
2024-07-17 03:00
to appear as
July 17, 2024
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