Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

before_current_date

$date_query = array(
	array(
		'before'        => '2020:10:09 23:59:59',
	),
);