I have custom post type, and there I have custom meta key called pickup_datetime. I am comparing the current date to the pickup date, but it’s not working. I mean, it doesn’t show the posts when I compare the dates in WP_Query .
What i wanna compare: Display those posts whose pickup datetime is larger than current date, if pickup datetime is less than current date then don’t display the posts.
Here are the dates, I am printing the pickup_datetime of a post:

You can see that pickup_datetime is larger date than current date, but it doesn’t display the posts.
Here are my code:
function getTodayDate() {
$parisTime = new DateTime("now", new DateTimeZone('CEST'));
return $parisTime->format('F d, Y H:i A');
}
$bookings = new WP_Query([
'post_type' => 'chbs_booking',
'status' => 'publish',
'meta_query' => array(
array(
'key' => 'chbs_booking_status_id',
'value' => 4
),
array(
'key' => 'chbs_driver_id',
'value' => -1,
),
array(
'key' => 'chbs_pickup_datetime',
'value' => getTodayDate(),
'compare' => '>=',
'type' => 'DATE'
),
)
]);
echo "Now:";
print_r(getTodayDate());
echo "Pickup Time:";
print_r(date('F d, Y, H:i A', strtotime(get_post_meta(12234, 'chbs_pickup_datetime', true))));
echo "Bookings: ". count($bookings->posts);
Can someone please help me? I am stuck.