Rabbinatix
Sign inGet started
Store

Period range

FreeLogic
@rabbinatix/period-range by Rabbinatixupdated Oct 4, 2026

The first and last moment of the day, week, month or year a date is in, for a "this month" or "this week" filter.

Sign in to add

Start of Period and End of Period give both ends in UTC; weeks run Monday to Sunday. Use them as the From and To of a database query, or with Now for "this month".

Shows: Start of Period, End of Period.

How to use it

Add it to your logic, then add a Call Function step in any logic and pick Period range. It belongs to no system, so every system can use it. Or download the TypeScript and call it from your own code.

Inputs
date: Text
unit: Text
Outputs
from: Text
to: Text
Previewdrag the steps around; scroll to zoom
Function Entry, Input / output. 0 inputs, 3 outputs. step 1 of 4
Period range
date
unit
Start of Period, Date and time. 2 inputs, 1 output. step 2 of 4
Start of Period
date
unit
result
End of Period, Date and time. 2 inputs, 1 output. step 3 of 4
End of Period
date
unit
result
Return, Input / output. 3 inputs, 0 outputs. step 4 of 4
Return
from
to

Arrow keys: next or previous step in flow order. Alt with arrows: nearest step in that direction. Enter: open. Shift F10: more actions.

100%
Examplesrun live against the logic · 2/2 pass
PassedExampleInputOutput
February{"date":"2026-02-10T08:30:00Z","unit":"month"}{"from":"2026-02-01T00:00:00.000Z","to":"2026-02-28T23:59:59.999Z"}
Week across New Year{"date":"2027-01-01","unit":"week"}{"from":"2026-12-28T00:00:00.000Z","to":"2027-01-03T23:59:59.999Z"}
Try it
Versions
In this package
Period range (entry)