title: Filter Custom Post Type Based on ACF date field value
body: <p>I have a custom post type called &quot;Events&quot;. All these events pages have a <strong>ACF Date Field</strong> to enter <strong>Event start Date</strong>. In the events archive page I want to divide these events between two group.</p>
  <ol>
  <li>Coming Soon Events - Check event date against current date.</li>
  <li>Completed Events - Past Events.</li>
  </ol>
  <p>So Coming Soon Events will be like this:</p>
  <pre><code>&lt;?php
      $today = date('Ymd');
      $args = array(
          'post_type'     =&gt; 'events',
          'nopaging'      =&gt; true,
          'orderby'       =&gt; 'meta_value_num',
          'meta_key'      =&gt; 'event_start_date', //ACF date field
      );
      $upcoming_events = new WP_Query( $args );
      if ( $upcoming_events-&gt;have_posts() ) :
  ?&gt;
  &lt;h2&gt;Upcoming Events&lt;/h2&gt;
  &lt;ul&gt;
  
  &lt;?php while ( $upcoming_events-&gt;have_posts() ) : $upcoming_events-&gt;the_post(); ?&gt;
  
  &lt;li&gt;
      Title: &lt;?php the_title(); ?&gt;&lt;br&gt;
      Date: &lt;?php echo get_field('event_start_date'); ?&gt;
  &lt;/li&gt;
  
  &lt;?php endwhile; wp_reset_postdata(); ?&gt;
  
  &lt;/ul&gt;
  &lt;?php endif; ?&gt;
  </code></pre>
  <p>I know there is meta_query to do this.</p>
  <pre><code>'meta_query'     =&gt; array( array(
      'key'        =&gt; 'event_start_date',
      'value'      =&gt; '',
      'compare'    =&gt; '',
  )),
  </code></pre>
  <p>But I'm not sure is how to compare event date against current date. Any help would be appreciated.</p>