Setting up the field
Email merge fields insert unique user data, linked to a unique value, into emails; they are discussed in greater detail here. A date can be inserted into a subject line or campaign using the [DATE] merge field. It should be noted that you cannot use the [DATE] merge field as part of a link.
We'll show you how
Type this code: [DATE|0|format]
There are two parameters: A Digit and a Format.
The Digit: '0' represents the current date. The date can be adjusted by adding or subtracting seconds.
The format: This determines how the date is displayed. The date is formatted according to PHP convention. PHP provides a list of all formats online.
Note: Dates using long form (Monday, June 10) are only available in English.
An example
If the current date is June 10th, 2013:
[DATE|0|Y-m-d] will show the current date, displayed numerically: 2013-06-10.
[DATE|86400|m.d.y] will show 06.11.13 (as 86 400 seconds is equal to 24 hours).
[DATE|-259200|F j, Y] will show June 07, 2013 (as 259 200 seconds is equal to 3 days).
Commentaires
0 commentaire
Vous devez vous connecter pour laisser un commentaire.