Comparing dates with PHP
<p>I am trying to compare today and a given date in PHP, and I am getting some unexpected results.</p>

<p>Here is some output I have:</p>

<pre><code>echo time(); // 1315940430 
echo strtotime("+20 days", $date_string); // 1730010
echo $date_string; // 2010-9-30 
</code></pre>

<p>and when I try something like this:</p>

<pre><code>if (date() &gt; date('Y-m-d', strtotime("+20 days", $date_string))) 
{

}
</code></pre>

<p>And the check always returns true no matter what the $date_string is.  Any idea how to fix this?</p>
