Home > php教程 > php手册 > body text

php datetime 类型转指定date格式

WBOY
Release: 2016-06-21 08:51:33
Original
826 people have browsed it
<ol class="dp-xml">
<li class="alt"><span><span>$</span><span class="attribute">date</span><span> = </span><span class="attribute-value">new</span><span> DateTime($releasedate); </span></span></li>
<li><span>$<span class="attribute">releasedateformat</span><span>=$date-</span><span class="tag">></span><span>format('d F, Y');  </span></span></li>
</ol>
Copy after login
本文链接http://www.cxybl.com/html/wlbc/Php/20120613/30051.html



Related labels:
source:php.cn
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
Popular Recommendations
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!