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?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
According to the PHP documentation,
date_parse_from_formatis 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