D
D
Dmitry2021-11-12 18:24:20
Smarty
Dmitry, 2021-11-12 18:24:20

How to display the date in this format november 2021?

I output the date in the following format:

{$smarty.now|date_format:"%m"} {$smarty.now|date_format:"%Y"}


It turns out like this: "11 2021"

How to display the date in such a format so that it is like this: "November 2021"

Answer the question

In order to leave comments, you need to log in

2 answer(s)
M
Mylistryx, 2021-11-12
@Mylistryx

https://www.smarty.net/docs/en/language.modifier.d... and set the locale!

T
ThunderCat, 2021-11-12
@ThunderCat

Have you tried looking at the doc ?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question