First and last day of the month
FreeLogic@rabbinatix/first-and-last-day-of-the-month by Rabbinatixupdated Oct 4, 2026
The month a date falls in: 2026-02-14 → 2026-02-01 to 2026-02-28.
Make Date builds the 1st from the parts; adding a month and going back a day gives the last day, leap years included.
Shows: Date Parts, Make Date, Add Time (months and negative days), Format Date.
How to use it
Add it to your logic, then add a Call Function step in any logic and pick Month 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
Outputs
first: Text
last: Text
Previewdrag the steps around; scroll to zoom
Function Entry, Input / output. 0 inputs, 2 outputs. step 1 of 8
Month range
date
Date Parts, Date and time. 1 input, 8 outputs. step 2 of 8
Date Parts
date
year
month
day
hour
minute
second
millisecond
weekday
Make Date, Date and time. 6 inputs, 1 output. step 3 of 8
Make Date
year
month
day
hour
minute
second
result
Add Time, Date and time. 3 inputs, 1 output. step 5 of 8
Add Time
date
amount
unit
result
Add Time, Date and time. 3 inputs, 1 output. step 6 of 8
Add Time
date
amount
unit
result
Format Date, Date and time. 2 inputs, 1 output. step 4 of 8
Format Date
date
pattern
result
Format Date, Date and time. 2 inputs, 1 output. step 7 of 8
Format Date
date
pattern
result
Return, Input / output. 3 inputs, 0 outputs. step 8 of 8
Return
first
last
Arrow keys: next or previous step in flow order. Alt with arrows: nearest step in that direction. Enter: open. Shift F10: more actions.
Examplesrun live against the logic · 2/2 pass
| Passed | Example | Input | Output |
|---|---|---|---|
| February | {"date":"2026-02-14"} | {"first":"2026-02-01","last":"2026-02-28"} | |
| Leap year | {"date":"2024-02-10T12:00:00Z"} | {"first":"2024-02-01","last":"2024-02-29"} |
Try it
Versions
In this package
Month range (entry)
