Home  >  Article  >  php教程  >  php datetime 类型转指定date格式

php datetime 类型转指定date格式

WBOY
WBOYOriginal
2016-06-21 08:51:33819browse
<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>
本文链接http://www.cxybl.com/html/wlbc/Php/20120613/30051.html



Statement:
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