django模板日期格式 [英] django template date format

查看:114
本文介绍了django模板日期格式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在数据库中的isoformat中有日期,%Y-%m-%d 但是,当日期传递到模板时,它出现像是十月16,2011

I have dates in isoformat in the db, %Y-%m-%d however when the date is passed on to the template, it comes out as something like Oct. 16, 2011.

有没有办法可以将格式操纵到我想要的?

Is there anyway that I can manipulate the format to whatever I want?

推荐答案

日期

settings.DATE_FORMAT

这篇关于django模板日期格式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆