By default, the date_format modifier in Smarty displays the month in English. However, you can customize the language using the Deployteq modifier date_format_locale:
By default, the date_format modifier in Smarty displays the month in English. However, you can customize the language using the Deployteq modifier date_format_locale:
date_format_locale
Dutch
{{$smarty.now|date_format_locale:'nl-NL':'d MMMM Y'}} 14 maart 2023
{{$smarty.now|date_format_locale:'nl-NL':'MMM d, yyyy'}} mrt. 14, 2023
German
{{$smarty.now|date_format_locale:'de-DE':'d MMMM Y'}} 14 März 2023
French
{{$smarty.now|date_format_locale:'fr-FR':'MMM d, yyyy'}} mars 14, 2023
Variations
Other examples
{{$smarty.now|date_format_locale:'en-US':"MMMM d 'at' h:mm a"}} February 5 at 9:25 AM
{{$smarty.now|date_format_locale:'en-US':"EEE, MMM d, ''yy"}} Mon, Feb 5, '24
{{$smarty.now|date_format_locale:'en-US':"h:mm a"}} 9:25 AM
{{$smarty.now|date_format_locale:'es_ES':"d 'de' MMMM, H:mm"}} 2 de abril, 17:00
{{'+7 days'|strtotime|date_format_locale:'en-US':'d MMMM Y'}} 14 February 2024