Skip to main content

Date Parts

The fields of a date — year, month, day, time, weekday and ISO week — as outputs off one node.

Date Parts takes a date apart into eleven outputs. Month is 1-12, not JavaScript's 0-11: nobody reading a port called Month expects January to be 0. Day of Week keeps JavaScript's numbering (0 is Sunday) and Day Name gives the English name beside it. ISO Week is ISO-8601 — weeks start Monday and week 1 is the one holding the first Thursday, so 1 January 2027 is week 53 of 2026. All fields are read in the host's local zone, which on a server is whatever the container's TZ says; when the zone matters, format through Date To String's Timezone input instead of reading parts here.

When to use it

Grouping by month or year, branching on the weekday, building a custom label from pieces, or feeding a chart axis. One node rather than seven, so every field comes from the same instant.

At a glance

CategoryUtilities
Type namenet.noodl.DateParts
Available inbrowser, cloud
SSR compatibilitysafe
Provided bynoodl-runtime

Inputs

Values

NameTypeDefaultDescription
inputDateThe instant to take apart. A string or a millisecond timestamp here is read as a date

Outputs

Values

NameTypeDefaultDescription
dateNumberDay of the month, 1-31
dayNameStringThe English name of the weekday. For a localised name, format through Date To String
dayOfWeekNumberDay of the week as 0-6, Sunday first — JavaScript s own numbering
hoursNumberHour of the day, 0-23
isoWeekNumberISO-8601 week number, 1-53: weeks start on Monday and week 1 holds the first Thursday
millisecondsNumberMilliseconds past the second, 0-999
minutesNumberMinutes past the hour, 0-59
monthNumberMonth as 1-12 — January is 1, not 0
secondsNumberSeconds past the minute, 0-59
timestampNumberThe instant as milliseconds since 1 January 1970 UTC
yearNumberFour-digit year, in the host s local zone

Signals

NameTypeDefaultDescription
changedSignalFires after a new Date has been taken apart and every part output is up to date

Failure outputs

NameTypeDefaultDescription
failureSignalFires when a date arrived that could not be read, leaving every part unset

Patterns

  • Date Parts Month → String Mapper: a month name in your own wording, without a formatter.

Watch out for

  • Reading parts here to render a date for a user in another timezone. Use Date To String with a Timezone; these fields are always local.

Date To String, Date Compare, Now

Generated

This page is generated from node-catalog-enriched.json. Do not edit it by hand — run npm run docs:nodes to regenerate, and fix the source enrichment instead.