Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

test

$meta_query = array(
	array(
		'key'     => 'date',
		'type'    => 'DATETIME',
	),
);