title: PHP check if date between two dates
body: <p>I got this code from Stackoverflow and changed it slightly to work with today's date.</p>
  
  <p>I want to check if today fits between two dates. But this is not working.
  What am I missing?</p>
  
  <pre><code>$paymentDate = date('d/m/Y');
  echo $paymentDate; // echos today! 
  $contractDateBegin = date('d/m/Y', '01/01/2001');
  $contractDateEnd = date('d/m/Y', '01/01/2015');
  
  if ($paymentDate &gt; $contractDateBegin &amp;&amp; $paymentDate &lt; $contractDateEnd)
  {
    echo "is between";
  }
  else
  {
  echo "NO GO!";  
  }
  </code></pre>