You can add inside the subject and content both standard dates (registration date [registerDate], date of birth [Birthdate]) as well as custom dates created within the account, inside the account preferences.
To do this, add the placeholder with the name of the field with the format you want to display
[MY_DATE format="d-m-Y"] (*)
For example:
[DATE_END_OFFER] => Defect Format AAAA-MM-DD HH:MM:SS
[DATE_END_OFFER format="d/m/y"] => Format DD-MM-AA (03/12/20)
[DATE_END_OFFER format="Y-m-d"] => Format AAA-MM-DD (2020-12-03)
Add the current campaign date in any format with the placeholder [mdDeliveryDate], for example:
[mdDeliveryDate format="d/m/Y a las H:i"]
You can also add the following dates with the following placeholders:
- [registerDate format="d/m/Y"]
- [birthdate format="d-m-Y"]
- [lastClickDate format="Y-m-d H:i"]
- [lastOpeningDate format="d/m/y"]
- d => Day of the month with zeros.
- D => Textual representation of the day with three letters. For example, Mon --> Monday.
- m => Representation of the month with zeros. For example, 01 --> January.
- M => Textual representation of the month with three letters. For example, Feb --> Feb.
- Y => Complete numerical representation of a year with 4 digits.
- y => Two digits representation of a year. For example, 99 --> 1999.
All these placeholders can be added from the same MDirector editor in a very simple way using the tool "Subscriber Parameters" where we will get a list of available placeholders.
There's also a new attribute available for the parameters of type date: add_time, and can be combined with format, or used separately. Thanks to this attribute we can modify the date that is going to be replaced, adding or subtracting the time needed.
Some examples for these are:
- [mdDeliveryDate add_time="+1 week"] -> 2018-12-26 17:00:00
- [registerDate format="d/m/Y" add_time="+1 year"] -> 2019-12-01 (assuming I registered on December 1, 2018)
- [mdDeliveryDate format="d/m H:i" add_time="+1 hour"] -> 19/12 18:00
This attribute works with both scheduled campaigns and campaigns send in blocks, detecting the date of the shipment and adding as much time as necessary.
(*) All the available formats are indicated on this page:
Comments