text: php date comparison? php date comparison, i have a date field in the db stored as yyyy-mm-dd, how can i check (with php) and compare with my current date, to see whether the date in the db is older than now here you go;  <?php function dateolderthannow($datefromdb) { //$datefromdb is formatted like so: '2005-01-02'  return strtotime($datefromdb)   source(s): http://www.php.net/manual