Im pulling a date from a database which is formatted like dd-mm-YYYY.
What I want to do is check the current date;
I have used this one and it served the purpose:
if($date < date("Y-m-d") ) { echo "Date is in the past";}
BR