Home > Article > CMS Tutorial > How to set the display time format in Imperial CMS
How to process the time format of the content page of the Empire CMS list page:
1. Check the list template on the list page
"Use program code", the list content template example is as follows:
$listtemp=' <li> <a href="[!--titleurl--]" title="[!--oldtitle--]">[!--title--]</a> <span> '.date("Y-m/d H:i:s",$r[newstime]).'</span> </li> ';
2. Content page
<?=date("YmdHis",$navinfor['newstime'])?>
Example: If I only want to display the month and day, and separate them with "/", then We can call
<?=date("m/d",$navinfor['newstime'])?>
as follows Recommendation: Empire cms website building tutorial
The above is the detailed content of How to set the display time format in Imperial CMS. For more information, please follow other related articles on the PHP Chinese website!