text: Here you go;\n\n<?php\nfunction dateOlderThanNow($dateFromDB) {\n//$dateFromDB is formatted like so: '2005-01-02'\n\nreturn strtotime($dateFromDB) < mktime();\n}\n?> \nSource(s):\nhttp://www.php.net/manual