Skip to main content
Builds a date range from a start and an end date — and takes one apart again. A range is an inclusive period. Feed it to Switch’s check port to branch on whether a date falls inside it, or to In List to test a date against several periods at once.

Two modes

The node works out what to do from how it is wired:
  • Compose — set From or To (either the inline field or the port) and the node builds a range from them. Whatever is on In is ignored.
  • Decompose — leave both bounds empty and unwired, and the node reads a range from In instead.
Range, From and To all emit in both modes, so you can build a range and still tap its bounds downstream.

Inputs

  • In — in decompose mode, the range to take apart. Ignored when either bound is set.
  • From — the start of the range. Optional.
  • To — the end of the range. Optional.

Outputs

  • Range — the range itself.
  • From — its start bound, or nil when open.
  • To — its end bound, or nil when open.

Tips

  • Leave one bound empty for an open-ended period — a From of 2024-01-01 with no To means “from 2024-01-01 onwards”, which is how an ongoing employment or an unclosed absence is usually shaped.
  • Bounds keep the precision they arrive with. Wire two datetimes to get an intra-day window (a shift, a punch window); the inline fields are whole days.
  • When both bounds end up empty the node emits nothing rather than a range that would match every date.
  • When From carries a timeline of several dates, To is paired to each entry by its valid-from, and one range is emitted per entry.

Ports