To add today's date in an email template, you can use the special word "today" with the date function.
Add the following attribute in the email template:
Input
This page was last updated at {{ "today" | date: "%Y-%m-%d" }}Output
This page was last updated at 2024-03-12You can also add the current time with the date.
Input:
This page was last updated at {{ "today" | date: "%Y-%m-%d %H: %M" }}Output:
This page was last updated at 2024-03-12 19:06
Comments
0 comments
Please sign in to leave a comment.