将日期转换为带有星期几的日期 php native

Convert a date into a date with day of the week php native

基本上我想转换这个日期:2016/12/18 收件人:2016 年 12 月 18 日,星期日。

我正在使用 zend 框架和 php 5.4

我真的很陌生我尝试使用:

date( "Y/m/d", strtotime( $model->startDate))->toString(Zend_Date::DATE_FULL)   ; 

但带来: 在非对象上调用成员函数 toString() 任何的想法?可以在 php 原生上做这个吗? 谢谢!

<?php 

  $x = "2016/12/18";

  echo date( "l, F d, Y", strtotime($x)); 

?>

将return:

Sunday, December 18, 2016

---

在此处查看日期参数:

http://php.net/manual/en/function.date.php

用这个

echo date('l F d,m',strtotime('2016/12/18'))