Search FlexiRule docs

Recent
Pinned

Press Esc to close. Use arrow keys and Enter inside results. Searches are remembered locally.

FlexiRule Docs

Timespan Keywords

Reference for natural language date keywords in FlexiRule.

Improve this page

Timespan Keywords#

Timespan keywords allow you to filter records by relative time without manually calculating dates. When a keyword like last month is used, the engine automatically resolves it into a static date range at the moment of execution.


Past Relative Dates#

KeywordResolution
todayThe current calendar day.
yesterdayThe previous calendar day.
last weekMonday to Sunday of the previous week.
last month1st to last day of the previous calendar month.
last quarterAll days within the previous fiscal quarter.
last yearJan 1st to Dec 31st of the previous year.
last 7 daysFrom 7 days ago until today.
last 30 daysFrom 30 days ago until today.
last 90 daysFrom 90 days ago until today.
last 6 monthsFrom 6 months ago until today.

Future Relative Dates#

KeywordResolution
tomorrowThe next calendar day.
next weekMonday to Sunday of the following week.
next month1st to last day of the next calendar month.
next quarterAll days within the next fiscal quarter.
next yearJan 1st to Dec 31st of the next year.
next 7 daysFrom today until 7 days in the future.
next 30 daysFrom today until 30 days in the future.
next 6 monthsFrom today until 182 days in the future.

Current Period Dates#

KeywordResolution
this weekMonday of current week to coming Sunday.
this month1st day to last day of the current month.
this quarterAll days within the current fiscal quarter.
this yearJan 1st to Dec 31st of the current year.

Implementation Details#

  • Timezone: All keywords are resolved using the system timezone configured in your Frappe instance.
  • Reference Time: Keywords are resolved relative to the exact moment the action is executed.
  • Precision: Most keywords resolve to full days (00:00:00 to 23:59:59).
  • Fallback: If an unknown keyword is provided, the engine defaults to today to prevent execution errors, while logging a warning.
Last updated Jun 26, 2026