title: Comparing two dates in php not working
body: <p>I have this code to compare:</p>
  
  <pre><code> $dateregister = date("d/m/Y", strtotime($register['date']));
     if ($dateregister &lt; date('d/m/Y')) {
        $class = 'danger';
     } else {
       $class = '';
     }
  </code></pre>
  
  <p>Always enter in if, but some dates (<code>$dateregister</code>) are bigger than <code>date(d/m/Y)</code></p>