隐藏时间格式在php [英] Covert time format in php
本文介绍了隐藏时间格式在php的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我如何将这样的日期格式化为
Thu,08 Jul 2010 15:51:01
转换为这样的日期 2010年7月8日星期四3:51 pm
。另外,如何过滤第一个蜇不包括时间,以便最终可能看起来像这样 2010年7月8日星期四
How would I covert a date formatted like this
Thu, 08 Jul 2010 15:51:01
into a date like this Thursday July 8th, 2010 3:51 pm
. Also, how would I filter the first sting to not include time, so that it could look like this in the end Thursday July 8th, 2010
推荐答案
http ://pl2.php.net/manual/en/function.date.php
echo date("l F jS, Y", strtotime("Thu, 08 Jul 2010 15:51:01"));
这篇关于隐藏时间格式在php的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文