Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

Meta compare dates

$meta_query = array(
	array(
		'key'     => 'date',
		'value'   => '$date',
		'compare' => '=',
		'type'    => 'DATE',
	),
);