How to display month name by number?

后端 未结 4 559
囚心锁ツ
囚心锁ツ 2021-02-07 11:24

I have a number represented month and i want to replace it with month name, date filter not working:

{{ monthnumber|date:\"M\" }}

I want to pla

4条回答
  •  一向
    一向 (楼主)
    2021-02-07 11:58

    Well, it's not :

    {{ monthnumber|date:"M" }}
    

    You should try this :

    {{ datetimeobj|date:"M" }}
    

提交回复
热议问题