DedeCMS自定义时间字段调用方法

每个人的成功之路可能有所不同,但我相信成功需要每个想要成功的人人民努力奋斗和奋斗,通往成功的每条道路都是坎s曲折。
这里以新增的时间字段shangxian为例,默认文档页调用格式是{dede:field.shangxian/},结果出来的是一串数字,像1306893720这样的。
自定义时间字段 正确调用方法:
列表页:[field:shangxian function="MyDate('Y-m-d',@me)"/]
首页、文档页:{dede:field.shangxian function="MyDate('Y-m-d',@me)"/}

也可以使用GetDateTimeMK函数:
列表页:[field:shangxian function="GetDateTimeMK(@me)"/]
首页、文档页:{dede:field.shangxian function="GetDateTimeMK(@me)"/}

以上就是DedeCMS自定义时间字段调用方法。但行前路,不负韶华!更多关于DedeCMS自定义时间字段调用方法请关注haodaima.com其它相关文章!

标签: DedeCMS