How To Validate X Days Before D-Day?
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/676824/how-to-calculate-the-difference-between-two-dates-using-php">How to calculate the difference between two dates using PHP?</a>  </p>
</blockquote>



<p>Let's say I have given date like this :</p>

<pre><code>$Christmas = '2012-12-25';
$Today = date('Y-m-d');
</code></pre>

<p>I want to create an <code>if</code> statement like this :</p>

<pre><code>if ($Today != 7 days before $Christmas) {
  echo 'Christmas still to far away';
}else ($Today == 7 days before $Christmas) {
  echo 'Christmas will be here within less than a week!';
}
</code></pre>

<p>How to create validation date such like that? thanks.</p>
