title: Comparing a date to current server date using PHP
body: <p>I am using the following code to attempt to compare the current date with a date entry in a mySql database. It's code that I have found online and adapted as all the examples I have found hard-code the date to compare the current date with.
  The trouble is even dates in the future are being marked as expired and I can't understand why this would be.
  I am afraid that I am still new to PHP, so I may be making a schoolboy error!</p>
  
  <pre><code>$exp_date = KT_formatDate($row_issue_whatson1['dateToShow']);
  $todays_date = date("d-m-Y");
  $today = strtotime($todays_date);
  $expiration_date = strtotime($exp_date);
  if ($expiration_date &gt; $today) { echo "Not expired"; } else { echo "expired"; }
  </code></pre>
  
  <p>Any help would be most appreciated.</p>
  
  <p>I should add that the date time format used in the database entries is dd/mm/yyyy</p>