Format a coupon expiry date in Smarty
To show a coupon expiry date consistently in an older Smarty template, format the supplied date field where the voucher appears. A numeric format works even when the server locale changes.
Pick a test date with a day above twelve. It makes a swapped month and day obvious when you compare the English and German previews.
Put this expression in the campaign template.
{$coupon_expire|date_format:"%Y-%m-%d"}
For a coupon expiring on 18 December 2026, the output is 2026-12-18. To display month or weekday names, check the locale of the PHP process rendering the email and preview the result in the intended language.
For the same voucher to show 18.12.2026 in German and 2026-12-18 in English, use %d.%m.%Y in the German template and %Y-%m-%d in the English one. Compare both previews with the expiry stored on the coupon.