Possible Duplicate:
php date compare
PHP compare dates
I have this code which permits me to grab today's date in this format:
$today = date("d-m-Y");
Then this query:
while ($row1 = mysql_fetch_array($queryenddate)) {
$end_date=$row1['end_date'];
}
The end date prints something like : 12-02-2012
How can i compare this two dates? What do i need to do? Thanks