Using date_parse_from_format on PHP 5.2

Last week, I was working on a problem of the Datepicker formats been really weird on some cases for The Events Calendar plugin, as Modern Tribe does support WordPress minimum PHP required version for it’s plugins, the developers have to solve some problems with the Tools that PHP 5.2 provides us.

### The enemy! ?

`Fatal error: Call to undefined function date_parse_from_format()`

On the case of dates, this becomes a real problem since we don’t have support for the `date_parse_from_format` or `DateTime::createFromFormat()` we needed to be able to parse formats like `15/02/1993` formatted with `d/m/Y`.

Read More