Skip to main content

notion.datefiltercondition

Home > @runlightyear/notion > DateFilterCondition

DateFilterCondition interface

Signature:
interface DateFilterCondition 

Optional Properties

PropertyModifiersTypeDescription
after?NotionDate

The value to compare the date property value against.

Returns database entries where the date property value is after the provided date.

before?NotionDate

The value to compare the date property value against.

Returns database entries where the date property value is before the provided date.

equals?NotionDate

The value to compare the date property value against.

Returns database entries where the date property value is the provided date.

isEmpty?true

The value to compare the date property value against.

Returns database entries where the date property value contains no data.

isNotEmpty?true

The value to compare the date property value against.

Returns database entries where the date property value is not empty.

nextMonth?{}A filter that limits the results to database entries where the date property value is within the next month.
nextWeek?{}A filter that limits the results to database entries where the date property value is within the next week.
nextYear?{}A filter that limits the results to database entries where the date property value is within the next year.
onOrAfter?NotionDate

The value to compare the date property value against.

Returns database entries where the date property value is on or after the provided date.

onOrBefore?NotionDate

The value to compare the date property value against.

Returns database entries where the date property value is on or before the provided date.

pastMonth?{}A filter that limits the results to database entries where the date property value is within the past month.
pastWeek?{}A filter that limits the results to database entries where the date property value is within the past week.
pastYear?{}A filter that limits the results to database entries where the date property value is within the past year.
thisWeek?{}A filter that limits the results to database entries where the date property value is this week.