Instead of using the strtotime() function to convert one date string into a new date string, the more conventional method is simply using a timestamp for the first date.
That is why the vBulletin tables, and most DB tables, store timestamp values instead of date string values. They may not be easier to read from directly inside the DB, but they're easier to manipulate in PHP.
|