Call to a member function format() on string

来源:互联网 发布:ug攻丝编程 编辑:程序博客网 时间:2024/05/23 15:47
$time = \DateTime::createFromFormat('Y-m-d H:i:s',$estimatedTime);$order->setEstimatedTime($time);
/** * @return \DateTime */public function getEstimatedTime(){    return $this->estimatedTime;}/** * @param \DateTime $estimatedTime */public function setEstimatedTime($estimatedTime){    $this->estimatedTime = $estimatedTime;}

阅读全文
0 0