Im pulling a date from a database which is formatted like dd-mm-YYYY.
What I want to do is check the current date;
if(strtotime($row['database_date']) > strtotime('now')) echo $row['database_date']; else echo date("d-m-Y");
No need to check the hours because if they are on the same day it will show the same date either way...