title: Wordpress: compare one date coming as custom field with current date
body: <p>I would like to know how to compare a date coming as custom field with the current date in a custom loop. I have following script, but it does not work...</p>
  
  <pre><code>enter$args = array(
  'post_type' =&gt; 'books',
   'meta_key'=&gt;'course_date',//the format comes like this Ydm
  'meta_value'=&gt; date('d.m.Y'),
   'meta_compare'=&gt; '&lt;'
  
  ); 
  </code></pre>
  
  <p>My goal is to show all books with when the date is > then the current date. If the current date is > then the related post must be hidden.</p>