Human reading date (the day or the month) will be displayed in your global account language.
The token {today} displays the actual date and time in the email. By default, you can use predefined formats after the pipe (|) symbol:
- {today} use same format as {today|datetime} will give Friday 18 November 2022 8:55 am
- {today|date} will give Friday 18 November 2022
- {today|time} will give 8:55 am
The date displays in a human readable format, taken from Configuration > System Settings.
- Default format for date only
- Default Time Only Format
This values are modifiable for the whole application UI using PHP date format standard. See documentation.
Use custom format
It returns the formatted date string based on PHP datetime format supplied after the pipe.
- {today|Y-m-d H:i:s} will give 2022-11-18 08:55:20
- {today|d. m. Y} will give 18. 11. 2022
- {today|l j F, Y} will give Friday 18 November, 2022
Use today for a relative date
You can use the {today} token to show a relative date by using a second | symbol. Few examples:
- {today|datetime|+1 month}
- {today|d. m. Y|+1 day}
Comments
0 comments
Please sign in to leave a comment.