Skip to main content
Moves each input date to the start of a unit of time configured on the node.

Configuration

The unit field selects the boundary to snap to: :day (default), :week, or :month.

Output type

The output type follows the input type: a Date becomes a Date, a NaiveDateTime or DateTime becomes the same type set to the start of the unit. Strings (ISO8601) and integers (Unix seconds) are parsed first, with strings producing whichever date type ISO8601 indicates and integers producing a DateTime (UTC).

Validation

Inputs must be parseable as a date, datetime, ISO8601 string, or non-negative Unix integer. Anything else raises an error.

Ports