From 0f3aa5135363442758839d22a5dc38825a81640e Mon Sep 17 00:00:00 2001 From: elliot sawyer <354793+elliot-sawyer@users.noreply.github.com> Date: Tue, 21 Sep 2021 15:51:14 +1200 Subject: [PATCH] Update 05-Filters-excludes.md --- docs/06-Advanced-Options/05-Filters-excludes.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/06-Advanced-Options/05-Filters-excludes.md b/docs/06-Advanced-Options/05-Filters-excludes.md index a53ccf28..dd3c5bdd 100644 --- a/docs/06-Advanced-Options/05-Filters-excludes.md +++ b/docs/06-Advanced-Options/05-Filters-excludes.md @@ -21,7 +21,7 @@ $query = new BaseQuery(); // Simple date filter - exclude any pages which have an embargo date in the future $criteria = Criteria::where('SiteTree_Embargo') - ->greaterThanEqual('NOW'); + ->greaterThanEqual(new \DateTime('NOW')); $query->addExclude('embargo', $criteria); // Starts with/ends with filter