Home  >  Article  >  Backend Development  >  How to format time labels using dedecms template

How to format time labels using dedecms template

little bottle
little bottleforward
2019-04-19 16:44:282659browse


This article mainly describes how to use the DedeCms template to format time tags. It has certain reference value. I hope that interested friends can stay and watch it for a while. .

<!--带时分秒-->
[field:pubdate function="GetDateTimeMK(@me)"/]
<!--只有日期-->
[field:pubdate function="GetDateMK(@me)"/]
<!--自定义时间格式-->
[field:pubdate function="MyDate('Y-m-d H:i',@me)"/]

Note: Field pubdate (timestamp)

Related videos: PHP video tutorial

The above is the detailed content of How to format time labels using dedecms template. For more information, please follow other related articles on the PHP Chinese website!

Statement:
This article is reproduced at:cnblogs.com. If there is any infringement, please contact admin@php.cn delete