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

Is.JS a general purpose check library

Working on a way to consistently check for values when dealing with JavaScript conditionals, and as you might already know from one or two articles written previously by some experienced developers out there.

To solve my issue I found a very cool library that will deal with almost all the basic conditionals in a pretty readable way, it's called is.js. Check out the library's GitHub repository and follow the project to know more about it.

What sold it for me was the tiny file size, no dependencies what so ever and a very good performance, that's why it's called a "micro" library.