title: How to compare two dates correctly?
body: <p>I have a web application which get a date (<code>dd.mm.YYYY</code>) from a MySQL database.</p>
  
  <pre><code>$date = ($_row["date"]);
  $date = date('d.m.Y', strtotime($date));
  $date = date('d.m.Y', strtotime("-5 day", strtotime($date)));
  </code></pre>
  
  <p>I format the date like this.</p>
  
  <p>Now i want to compare the date from the DB with the date today.</p>
  
  <pre><code>$today = date('d.m.Y');
  </code></pre>
  
  <p>I want to show something when in 5 days from today is <code>$date</code>.
  My question is now how can I check this?
  I know there are many mistakes in the codes but I don't know how to do this correctly.</p>