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!