# SOLVED: Post Loop Meta Query by ACF Date Field

**URL:** <https://forum.bricksbuilder.io/t/solved-post-loop-meta-query-by-acf-date-field/2309>\
**Category:** How To\
**Created:** [March 4, 2022, 12:42am UTC](https://forum.bricksbuilder.io/t/solved-post-loop-meta-query-by-acf-date-field/2309 "2022-03-04T00:42:06Z")\
**Posts on this page:** 1\
**Showing post:** 9

<div class="post-metadata">

**Author:** ![timmse](https://forum.bricksbuilder.io/user_avatar/forum.bricksbuilder.io/timmse/32/1192_2.png) [@timmse](https://forum.bricksbuilder.io/u/timmse)\
**Post date:** [March 7, 2022, 7:04pm UTC](https://forum.bricksbuilder.io/t/solved-post-loop-meta-query-by-acf-date-field/2309/9 "2022-03-07T19:04:13Z")

</div>

Hi Lyle,  
using the following settings should work as well (and you can get rid of the custom PHP):

 ![Bildschirmfoto 2022-03-07 um 19.57.19](https://forum.bricksbuilder.io/uploads/default/original/2X/b/bf2ff1df3519c3009998ee23303a41b60d45225a.png)

 ![Bildschirmfoto 2022-03-07 um 19.56.45](https://forum.bricksbuilder.io/uploads/default/original/2X/8/8ee371131c982c4bc9b872c89c71c882c734e791.png)

The ACF date values are stored as YYYYMMDD in the database (I just looked it up), regardless of which return format you’ve set. Accordingly, the current date must have the same format so they can be compared.

 ![Bildschirmfoto 2022-03-07 um 20.03.26](https://forum.bricksbuilder.io/uploads/default/original/2X/4/44cf2171ce885fbba356975cea708285a53c06a4.png)

Best regards,  
timmse

---

_[View the full topic](https://forum.bricksbuilder.io/t/solved-post-loop-meta-query-by-acf-date-field/2309)._
