Sorting dates with PHP
This should have been much faster, so I'm sharing this. PHP (>5.2) creates and compares dates out of the box with the dateTime class. This is my use case. I had saved some dates as strings in the database, using the jQuery datepicker. I had to convert them back to dateTime-objects to compare two dates. ...