If date is bigger than.. not working properly in php
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/5082261/php-date-larger-than-current-date">PHP: Date larger than current date</a>  </p>
</blockquote>



<p>I have my dates in this format: dd-mm-yyyy</p>

<p>Now according to php, 28-06-2011 is bigger than 01-11-2011</p>

<pre><code>$today = date('d-m-Y', time());

if("28-06-2011" &gt; $today ){
     echo "This returns true";
}
</code></pre>

<p>How can i make this work properly?</p>
