Dates processor
Performs date related operations.
The Dates processor allows you to apply various functions to fields related to dates, times and timestamps. Available functions can be used to calculate, cleanse, modify or convert dates.
Usage
-
The Dates processor requires one input flow and can generate only one output flow.
-
Data needs to be converted to the date type before using formatting functions.
Properties
Properties to configure to work on dates.
Property | Configuration |
---|---|
Function name |
|
Fields to process |
Select the field or fields on which you want to apply a function in the list. Tip noteIf you want to apply the same function to multiple fields at once, click the Open dialog icon to open a tree view that allows you to select multiple fields.
|
Create new field | Enable this option to create a new field after applying the function. If you do not enable this option, the existing field will be kept and modified. |
Rename new field | Give a custom name to the newly created field. |
To rename the processor or edit its description, click the Edit icon next to the processor name in the Properties panel.
Supported date formats
Format | Type | Example |
---|---|---|
YYYY-MM-DD | Date | 1999-03-22 |
YYYYMMDD | Date | 19990322 |
M/D/YYYY | Date | 3/22/1999 |
M/D/YY | Date | 3/22/99 |
MM/DD/YY | Date | 03/22/99 |
MMM D, YYYY | Date | Mar 22, 1999 |
MMMM D, YYYY | Date | March 22, 1999 |
YYYY-MM-DD hh:mm | Timestamp | 1999-03-22 05:06 |
YYYY-MM-DD hh:mm:ss | Timestamp | 1999-03-22 05:06:07 |
YYYY-MM-DDThh:mm | Timestamp | 1999-03-22T05:06 |
YYYY-MM-DDThh:mm:ss | Timestamp | 1999-03-22T05:06:07 |
M/D/YYYY hh:mm tt | Timestamp | 3/22/1999 05:06 AM |
M/D/YY hh:mm tt | Timestamp | 3/22/99 05:06 AM |
MM/DD/YY hh:mm tt | Timestamp | 03/22/99 05:06 AM |
M/D/YYYY hh:mm:ss tt | Timestamp | 3/22/1999 05:06:07 AM |
M/D/YY hh:mm:ss tt | Timestamp | 3/22/99 05:06:07 AM |
MM/DD/YY HH:mm:ss tt | Timestamp | 03/22/99 05:06:07 AM |
MMM D, YYYY h:mm:ss tt | Timestamp | Mar 22, 1999 5:06:07 AM |
WWWW, MMMM D, YYYY h:mm:ss tt | Timestamp | Monday, March 22, 1999 5:06:07 AM |
hh:mm | Time | 05:06 |
hh:mm:ss | Time | 05:06:07 |
hh:mm tt | Time | 05:06 AM |
hh:mm:ss tt | Time | 05:06:07 AM |