Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

test date

$date_query = array(
	array(
		'year'          => 2000,
		'column'        => 'post_date',
	),
);