Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

simple date query

$date_query = array(
	array(
		'year'          => 2019,
		'month'         => 10,
		'day'           => 31,
		'compare'       => '=',
	),
	array(
	),
);