There should not be any need to do this.
Even if an ACF Field is using 'return_format' => 'm/d/Y g:i a',
The post_meta value is in YYYY-MM-DD 00:00:00 format.
$date_now = date('Y-m-d');
$args = [
'meta_key'=>'the_date',
'meta_value'=>$date_now.' 00:00:00',
'meta_compare'=>'>=',
];
$query = new WP_Query( $args );
Edit: I’ve noticed some discrepancies in this, the value may be in Ymd. When in doubt, check the data. You can find the post_meta by looking up the post_id in the wp_postmeta table.
Related Posts:
- ACF Relationship Field Search Filtering [closed]
- datetime picker, timestamps and meta queries
- meta_query with array as value
- Use meta_query to display events by date in custom field
- If two first numbers exist in wp_meta_query value
- WP_Query meta_query >= date
- ACF Date Based wp_query
- Custom query based on meta key – Reduce three states to two in results?
- What is the random string I am seeing when I use get_query_var?
- Any number in meta key (wp query)
- 2 weeks ago from meta query meta value
- WP_Query with meta_query dosen’t return results
- Custom query filter by ACF date custom field
- Order WP_Query by meta_key priority when ‘OR’ relation used for multiple meta values
- ACF: How to query for a given value count of an array like field? (e.g.: How many rows has a `flexible_content` field?)
- WP_Query, ACF field and array
- Pre get posts sort by meta key returns no results if meta key does not exist
- Slow wp_posts and wp_postmeta query using Advance Custom Fields
- datetime picker, timestamps and meta queries
- Get posts meta_query by repater field
- How can I modify standard search query to include also ACF custom fields values?
- The sorting of posts by a meta_query with two keys fails while separated as single queries it works
- Get posts using multiple values from ACF checkbox as meta query wordpress
- How do I subquery with custom meta fields?
- Use value from meta key array for use in WP_Query
- How to use meta_query to retrieve posts from multiple custom post type
- WP_Query filtering in ACF field containing dates
- Meta_query compare operator explanation
- meta_query ‘compare’ => ‘IN’ not working
- Sorting: custom query with orderby meta_value_num THEN by title
- Display List Of Posts Containing a Relationship Field Value [ACF]
- Using OR conditions in meta_query for query_posts argument
- WP_Query with checkbox meta_query
- Finding all results from database within 500 miles of the given latitude and longitude [closed]
- Is “orderby” in WP Meta Query conflicting with Meta Query?
- WordPress meta_query and order by custom field
- How to get the posts published in last two days using WP_Query?
- WP Meta Query for some meta (array) values
- Sort users by meta_value_num
- Using WP Query to search within ALL keys in meta query
- WP Query – Get WooCommerce Products with variation that is in stock
- Meta_query with or without value
- Meta query field order together with post_date order causes posts without the meta field to be unordered
- Undefined property: WP_Query::$post
- wp_query not searching with apostrophe
- Extending woocommerce admin product search
- Performance when getting post meta for post retrieved by meta value
- Query by multiple meta elements not seeming to work – wordpress is timing out
- How to display multiple custom fields with the same meta_key in an ascending order?
- Meta_query with multiple keys and multiple values
- How does one perform a sub query with different post types
- How to Union two different conditions in one WP_Query
- Tax query AND/OR meta query [duplicate]
- Help ordering Post loop by two meta values
- Multisite wp_query & switch_to_blog issue
- Stuck in the query loop
- Posts published last 10 minutes
- Make meta query treat meta_value as 1 or 0
- WP Query Meta Value – How To Identify Specific, Unique Values?
- Order by meta_key doesn’t work
- Appending to existing WP_Query’s meta_query if exists
- Multiple meta_key ordering with pre_get_posts
- Query posts using less than
- Meta query with compare by more than 2 fields
- How to get current page nearest parent id?
- WP_Query meta compare must include ALL array values
- meta_query returning excluded result
- WP Query orderby ACF boolean values and ACF field value
- Optimising WP_Query with ACF Fields
- meta_query weird behaviour, static int will work, but not user data
- Creating a query that get all posts but places meta items first
- get_posts query is taking about 40 seconds to execute
- wp query to use both author id and meta_query
- Excluding posts from search results page with meta query not working
- WP_Query for a taxonomy value OR a custom post type meta field
- Query for getting posts with their custom fields data in WordPress
- Meta query orderby meta_value_num sorting by role first
- How to rearrange posts based on input field values added by WordPress “Advanced Custom Fields”
- WP Query with meta queries
- Get posts having meta value between two numbers
- How to set meta_query if get_post_meta returns nested array for that key? [duplicate]
- ACF: using two loops, the_field returns field content from another loop
- meta_query is not allowing to show posts when querying multiple arguments in a WP_Query
- Speed up WP_query with meta comparing dates
- Meta Query if Values Don’t Exist
- How to show all the associated posts with specific date of data metabox?
- Object of class WP_Query could not be converted to int inside shortcode
- WP_Query returns empty if meta_query has more than 7 values
- Is it possible to search for a string in posts OR postmeta?
- WP_Query Posts by Metadata from Option Tree
- WP_Query within save_post doesn’t include the item that triggered the action?
- Using orderby with 2 meta keys
- Why is WP_Query’s meta_query not filtering results?
- Display all custom meta field values from the database using ACF Repeater
- meta_query in wp_query not working as expected
- WordPress extremely slow when using get_posts with multiple meta_query relations
- I want to place a post before all others from an ACF boleen field
- WP_Query filter Posts by timestamp event (range start and end) and by month (next 12 month)
- WordPress – Optimize the Meta Query for 3 meta keys at a time
- Include custom post type that matches taxonomy field in another custom post type