How to display current year in Flask template?

前端 未结 3 678
暗喜
暗喜 2021-02-07 06:09

I am looking to find out how to output the current year in a Flask template. I know in Django you can use {% now \"Y\" %}., but is there a Flask equivalent? I have

3条回答
  •  情歌与酒
    2021-02-07 07:01

    You can use a JavaScript library like moment.js like this:

    
    

提交回复
热议问题