The variable feature lets you automatically display the start and end date/time set in a rule within the product message. You no longer need to manually rewrite the text every time you change the dates in a rule.
Click the "Insert variable" button in the product message input toolbar
Select the variable to insert (Start date or End date)
Select the display format
Format | Example | Start date variable | End date variable |
|---|---|---|---|
Date and time | January 1, 2024 13:00 | {{startsAt|yMMMMdHm}} | {{endsAt|yMMMMdHm}} |
Date and time (slash) | 2024/01/01 13:00 | {{startsAt|yMdHm}} | {{endsAt|yMdHm}} |
Date | January 1, 2024 | {{startsAt|yMMMMd}} | {{endsAt|yMMMMd}} |
Date (slash) | 2024/01/01 | {{startsAt|yMd}} | {{endsAt|yMd}} |
Month and day | January 1 | {{startsAt|MMMMd}} | {{endsAt|MMMMd}} |
Time | 13:00 | {{startsAt|Hm}} | {{endsAt|Hm}} |
This product will be available on {{startsAt|yMMMMd}}!
On sale: {{startsAt|yMMMMd}} – {{endsAt|yMMMMd}}