时间:2021-07-01 10:21:17 帮助过:4人阅读
代码如下:
echo "周" . formatDate("w","2012-11-03 00:46:22" , 1) . " " . formatDate("Y-m-d", "2012-11-03 00:46:22");
echo "周" . formatDate("w","1388678400" , 1) . " " . formatDate("Y-m-d", "1388678400");
周六 2012-11-03
周五 2014-01-03
http://www.bkjia.com/PHPjc/825268.htmlwww.bkjia.comtruehttp://www.bkjia.com/PHPjc/825268.htmlTechArticle 代码如下:// 格式化日期 static function formatDate($format, $datetime, $week = 0) { $datetime = $datetime 3000 ? $datetime : strtotime($datetime); if ($week)...