Skip to content

Extract Date Component

Description

The Extract Date Component activity enables users to extract individual date components—such as Year, Month, Day, Week Number, etc.—from a specified date column. It adds these components as new columns to the dataset.

Use Case:
Useful in reporting and time-based aggregations where date breakdowns like Transaction_Year, Transaction_Month, and Transaction_Weekday are needed for grouping, filtering, or visualization.


Input

TypeDescription
DataDataset with one or more date columns.

Output

TypeFormatDescription
Transformed DataTableInput data along with additional extracted fields.

Configuration Fields

Field NameRequiredDescription
Date columnYesThe column from which to extract date components.
Start Day Of WeekNoSets the start day of the week (e.g., Monday or Sunday).
ComponentsYesList of components to extract: Year, Month, Day, Week, DayOfWeek, etc.
PrefixNoPrefix for the newly created columns (e.g., Transact_).
Include originalNoIf enabled, keeps the original date column along with extracted fields.

Sample Input

IDDate
12023-09-15
22022-05-20
32021-12-30

Sample Configuration

FieldValue
Date columnDate
Start Day Of WeekMonday
ComponentsYear, Month, Day
Prefix Transact_
Include originalTrue

Sample Output

IDDateTransact_YearTransact_MonthTransact_Day
12023-09-1520230915
22022-05-2020220520
32021-12-3020211230