Date&Time Part Extractor

Extracts specific components from Date, Time, Date&time (Local), or Date&time (Zoned) columns. Appends the extracted values as integer or string columns, depending on the component.
Useful for extracting years, months, days, or time components for analysis, filtering, or visualization.

Options

Date&time column
Select the column containing Date, Time, Date&time (Local), or Date&time (Zoned) values from which you want to extract specific fields.
Extracted fields
Define date or time fields to extract and their column names.
  • Field: The type of field to extract.
    • Year: Extracts the year as number and appends it as an integer column.
    • Year (Week-based): Extracts the year based on the week and appends it as an integer column. Depending on the selected locale, week 1 of a year may already start in the previous year, or week 52 of a year may last until the next year (e.g., 30th Dec 2010 belongs to week 1 of year 2011 (locale en-US), so the extracted Year (week-based) would be 2011 while the extracted Year would be 2010).
    • Quarter: Extracts the quarter of the year as a number in range [1-4] and appends it as an integer column.
    • Month (Number): Extracts the month of the year as a number in range [1-12] and appends it as an integer column.
    • Month (Name): Extracts the month of the year as a localized name and appends it as a string column.
    • Week: Extracts the week of the year as a number in range [1-52] and appends it as an integer column. A partial week at the beginning of a year is handled according to the chosen locale.
    • Day of Year: Extracts the day of the year as a number in range [1-366] and appends it as an integer column.
    • Day of Month: Extracts the day of the month as a number in range [1-31] and appends it as an integer column.
    • Day of Week (Number): Extracts the day of the week as a number in range [1-7] and appends it as an integer column. The numbering is based on the chosen locale.
    • Day of Week (Name): Extracts the day of the week as a localized name and appends it as a string column.
    • Hour: Extracts the hour of the day as a number in range [0-23] and appends it as an integer column.
    • Minute: Extracts the minute of the hour as a number in range [0-59] and appends it as an integer column.
    • Second: Extracts the second of the minute as a number in range [0-59] and appends it as an integer column.
    • Millisecond: Extracts the millisecond fraction of the second as number in range [0-999] and appends it as an integer column.
    • Microsecond: Extracts the microsecond fraction of the second as number in range [0-999,999] and appends it as an integer column.
    • Nanosecond: Extracts the nanosecond fraction of the second as number in range [0-999,999,999] and appends it as an integer column.
    • Time Zone Name: Extracts the unique time zone name as a non-localized name and appends it as a string column.
    • Time Zone Offset: Extracts the time zone offset as a localized, formatted number and appends it as a string column.
  • Column name: The name of the column populated with the values of the selected field. The field cannot be empty (it must contain at least one character).
Locale
The locale that governs the localization of output strings (month, day of week, time zone offset) and takes care of local calendrical characteristics (week and day of week numbering).

Input Ports

Icon
The input table that contains columns with date or time information to extract.

Output Ports

Icon
Output table containing the extracted fields as appended columns.

Popular Predecessors

Views

This node has no views

Workflows

Links

Developers

You want to see the source code for this node? Click the following button and we’ll use our super-powers to find it for you.