How would I check if a date in the format \"2008-02-16 12:59:57\" is less than 24 hours ago?
You can use Simple PHP to do this:
$date = new simpleDate(); echo $date->now()->subtractHour(24)->compare('2008-02-16 12:59:57')->isBefore();