How to format time labels using dedecms template

little bottle
Release: 2023-04-06 06:48:01
forward
2726 people have browsed it


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)"/]
Copy after login

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!

Related labels:
source:cnblogs.com
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Articles by Author
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template