How to Add a Notion Search Objects Date Filter for Today

:bullseye: What is your goal?

Hi everyone! I’m trying to use the Notion Search Objects module and I’m having issues with the Filtering by Date. I’ve ran the module without filtering and the outputs are correct. But the goal is to use the module and filter by today’s date.

:thinking: What is the problem & what have you tried?

I’ve used the NOW function but that didn’t produce any outputs. I tried to use the formatDate function (see screenshot) and that results in a red error message. I also made sure the date format within my Notion database matched the formatting MM/DD/YYYY.

:clipboard: Error messages or input/output bundles

RuntimeError
[400] body failed validation. Fix one: body.filter.or[0].date.equals should be a valid ISO 8601 date string, "today", "tomorrow", "yesterday", "one_week_ago", "one_week_from_now", "one_month_ago", or "one_month_from_now", instead was "04-24-2026". body.filter.or[0].date.before should be defined, instead was undefined. body.filter.or[0].date.after should be defined, instead was undefined. body.filter.or[0].date.on_or_before should be defined, instead was undefined. body.filter.or[0].date.on_or_after should be defined, instead was undefined. body.filter.or[0].date.this_week should be defined, instead was undefined. body.filter.or[0].date.past_week should be defined, instead was undefined. body.filter.or[0].date.past_month should be defined, instead was undefined. body.filter.or[0].date.past_year should be defined, instead was undefined. body.filter.or[0].date.next_week should be defined, instead was undefined. body.filter.or[0].date.next_month should be defined, instead was undefined. body.filter.or[0].date.next_year should be defined, instead was undefined. body.filter.or[0].date.is_empty should be defined, instead was undefined. body.filter.or[0].date.is_not_empty should be defined, instead was undefined.

Origin
Notion

Automatic error handler
If you want to handle this error automatically, choose one of the following options. This will create a new error-handler route in your scenario. You can then expand the route in any way you like.

:link: Create public scenario page

:camera_with_flash: Screenshots (scenario flow, module settings, errors)

After some troubleshooting, I learned what the issue was. The date format was wrong. It should’ve been YYYY-MM-DD. All fixed!