开发者

Fatal error: Call to undefined function date_parse_from_format()

开发者 https://www.devze.com 2023-04-05 04:22 出处:网络
I\'m using PHP 5.2 and getting the following error message: Fatal error: Call to undefined function date_parse_from_format()

I'm using PHP 5.2 and getting the following error message: Fatal error: Call to undefined function date_parse_from_format()

Here is the code:

$startData = date_parse_from_format("Y-m-d\TH:i:s:uO", $开发者_如何学运维when->startTime);

Why am I getting this error?


According to the PHP documentation, date_parse_from_format is available since PHP 5.3 only.

You can try with this alternative, posted in SO: PHP date_parse_from_format( ) alternative in PHP 5.2

0

精彩评论

暂无评论...
验证码 换一张
取 消