Comparing two dates

Posted on 16th Feb 2014 by admin

Hi Guys
I have two dates I want to compare. Below is my current implementation. The problem with it is it always returns false:

if(date("d/m/y", $course->finish_date) > date("d/m/y", $today[0]))
// do somemthing
else
// do something

Other forums