title: If ACF date picker field value reached, delete row
body: <p>I'm using the following code for a repeater field, which also has a datepicker. I would like hide the loops that are older than the current date. </p>
  
  <pre><code>&lt;?php  if( have_rows('jobs','option') ): ?&gt;
              &lt;div id="jobs"&gt;
                  &lt;div class="jobs-title"&gt;
                      &lt;h2&gt;&lt;?php the_field('active','option'); ?&gt;&lt;/h2&gt;
                  &lt;/div&gt;
                  &lt;div class="jobs"&gt;
                      &lt;div class="inner-jobs flexing"&gt;
                          &lt;?php while( have_rows('jobs','option') ): the_row(); ?&gt;
                          &lt;div class="flex job flexing"&gt;
                              &lt;div class="flex-small"&gt;
                                  &lt;div class="bubble flex"&gt;
                                      &lt;img src="&lt;?php the_sub_field('job-img','option'); ?&gt;"&gt;
                                  &lt;/div&gt;
                              &lt;/div&gt;
                              &lt;div class="flex-cont"&gt;
                                  &lt;div class="job-title"&gt;&lt;h4&gt;&lt;?php the_sub_field('job-title','option'); ?&gt;&lt;/h4&gt;&lt;/div&gt;
                                  &lt;p&gt;Lõpptähtaeg: &lt;?php the_sub_field('job-deadline','option'); ?&gt;&lt;/p&gt;
                                  &lt;a href="&lt;?php the_sub_field('job-url','option'); ?&gt;" target="_blank"&gt;&lt;button&gt;&lt;?php the_sub_field('job-button','option'); ?&gt;&lt;span class="ion-ios-arrow-forward"&gt;&lt;/span&gt;&lt;/button&gt;&lt;/a&gt;
                              &lt;/div&gt;
                          &lt;/div&gt;&lt;!-- job --&gt;
                          &lt;?php endwhile; ?&gt;
                      &lt;/div&gt;&lt;!-- inner --&gt;
                  &lt;/div&gt;&lt;!-- .jobs --&gt;
              &lt;/div&gt;&lt;!-- #jobs --&gt;
              &lt;?php endif;?&gt;
  </code></pre>
  
  <p>The datepicker field is 'job-deadline'</p>
  
  <p>Haven't yet found a good example, any advise?</p>
  
  <p><strong>EDIT: managed to reached the following, which still outputs 70/01/01</strong></p>
  
  <pre><code>&lt;?php  if( have_rows('jobs','option') ): ?&gt;
          &lt;?php $now = time(); ?&gt;
          &lt;?php $date_one_timestamp = strtotime(get_sub_field('job-deadline','option')); ?&gt;
              &lt;div id="jobs"&gt;
                  &lt;div class="jobs-title"&gt;
                      &lt;h2&gt;&lt;?php the_field('active','option'); ?&gt;&lt;/h2&gt;
                  &lt;/div&gt;
                  &lt;div class="jobs"&gt;
                      &lt;div class="inner-jobs flexing"&gt;
                          &lt;?php while( have_rows('jobs','option') ): the_row(); ?&gt;
                          &lt;?php if ($now &gt; $date_one_timestamp ) { ?&gt;
                          &lt;div class="flex job flexing"&gt;
                              &lt;div class="flex-small"&gt;
                                  &lt;div class="bubble flex"&gt;
                                      &lt;img src="&lt;?php the_sub_field('job-img','option'); ?&gt;"&gt;
                                  &lt;/div&gt;
                              &lt;/div&gt;
                              &lt;div class="flex-cont"&gt;
                                  &lt;div class="job-title"&gt;&lt;h4&gt;&lt;?php the_sub_field('job-title','option'); ?&gt;&lt;/h4&gt;&lt;/div&gt;
                                  &lt;p&gt;Lõpptähtaeg: &lt;?php echo date("y/m/d", $date_one_timestamp); ?&gt;&lt;/p&gt;
                                  &lt;a href="&lt;?php the_sub_field('job-url','option'); ?&gt;" target="_blank"&gt;&lt;button&gt;&lt;?php the_sub_field('job-button','option'); ?&gt;&lt;span class="ion-ios-arrow-forward"&gt;&lt;/span&gt;&lt;/button&gt;&lt;/a&gt;
                              &lt;/div&gt;
                          &lt;/div&gt;&lt;!-- job --&gt;
                          &lt;?php } else { ?&gt;
                          &lt;?php } ?&gt;
                          &lt;?php endwhile; ?&gt;
                      &lt;/div&gt;&lt;!-- inner --&gt;
                  &lt;/div&gt;&lt;!-- .jobs --&gt;
              &lt;/div&gt;&lt;!-- #jobs --&gt;
              &lt;?php endif;?&gt;
  </code></pre>