title: Advanced Custom Fields - Compare Datepicker Date with current date
body: <p>I need help to display a simple message when one of my seminars ends. I have something like "<em>This seminar has ended</em>" in mind, but can't figure out the right formats. I'm using wordpress and the <a href="http://www.advancedcustomfields.com/" rel="nofollow">Advanced Custom Fields</a> (ACF) plugin for custom fields:</p>
  
  <p><strong>Code:</strong></p>
  
  <pre><code>    &lt;?php 
  
          $today = date('Ymd');
          $sem_date = get_field('sem_date'); // Output format d / m / y  (has to be this format on the site)
  
          if($today &gt; $sem_date){ ?&gt;
  
          &lt;div class="oops"&gt;
              This seminar has ended!
          &lt;/div&gt;  
  
      &lt;?php } ?&gt;
  </code></pre>