0

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?

Herbert
  • 5,698
  • 2
  • 26
  • 34
user887448
  • 21
  • 1
  • 2

1 Answers1

3

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

Community
  • 1
  • 1
dinopmi
  • 2,683
  • 19
  • 24