Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

Event Start & End Dates

Less than 3-24-22, Greater than 3-23-22

$meta_query = array(
	'relation' => 'AND',
	array(
		'key'     => '_EventStartDate',
		'value'   => '2022-03-23 00:00:00',
		'compare' => '>',
		'type'    => 'CHAR',
	),
	array(
		'key'     => '_EventEndDate',
		'value'   => '2022-03-24 00:00:00',
		'compare' => '<',
		'type'    => 'CHAR',
	),
);