title: Display content based on date with PHP
body: <p>I'm putting together a contest site built on Wordpress. Legally, the contest has to start at midnight. To avoid being up at midnight to set up the content, i'd like to build some PHP logic to show everything after the start date, and before then display some basic HTML for a splash page. I'm a TOTAL programming newb, but i'm trying to work the problem out, here's what I have so far:</p>
  
  <pre><code>&lt;?php
  
  // The current date
  $date = date('Y, j, m');
  
  // Static contest start date
  $contestStart = ('2012, 02, 03');
  
  // If current date is after contest start
  if ($date &gt; $contestStart) {
  //contest content?
  }
  
  else {
  // splash content?
  }
  ?&gt;
  </code></pre>
  
  <p>I feel like there is smarter ways to do this. My site is fairly large... wrapping the whole thing in an if statement seems ridiculous. Maybe a redirect to a different page altogether based on the date?</p>
  
  <p>Any help is appreciated.</p>