Use the PHP date/time classes to convert these string representations into something you can directly compare using getTimestamp () to compare the UNIX times. If you’re sure all your dates are in this format, you can string slice them into YYYY-MM-DD, and a string comparison will function correctly then.
