What is the best way to compare two dates? For example, I have two dates in mysql date format (yyyy-mm-dd).
$currentdate = date('Y-m-d');
$expiredate = '2010-03-21';
I want to know if the expire date is less than or equal to the current date. What is the best way to do that?