Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

Test

$meta_query = array(
	array(
		'key'     => 'key',
		'value'   => '2019-08-01',
		'compare' => '<',
		'type'    => 'DATE',
	),
);