Is it a weekend?
FreeLogic@rabbinatix/is-it-a-weekend by Rabbinatixupdated Oct 4, 2026
Saturday or Sunday, from a date.
Date Parts numbers weekdays from 1 (Monday) to 7 (Sunday), the same in every language.
Shows: Date Parts, Greater or Equal.
How to use it
Add it to your logic, then add a Call Function step in any logic and pick Is it a weekend. 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
weekend: Yes / No
weekday: Whole number
Previewdrag the steps around; scroll to zoom
Function Entry, Input / output. 0 inputs, 2 outputs. step 1 of 4
Is it a weekend
date
Date Parts, Date and time. 1 input, 8 outputs. step 2 of 4
Date Parts
date
year
month
day
hour
minute
second
millisecond
weekday
Greater or Equal, Operators. 2 inputs, 1 output. step 3 of 4
>=
A
B
result
Return, Input / output. 3 inputs, 0 outputs. step 4 of 4
Return
weekend
weekday
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 |
|---|---|---|---|
| Sunday | {"date":"2026-10-04"} | {"weekend":true,"weekday":7} | |
| Monday | {"date":"2026-10-05T08:00:00Z"} | {"weekend":false,"weekday":1} |
Try it
Versions
In this package
Is it a weekend (entry)
