Date and Time Date and Time Component Download PDF

Use the Date and Time component to transform Date/Time date/time data. It creates one or more new columns, extracting specific date/time information from the original dataset's date/time column.

Example
Date (source column) (Year + Month) Date (Year + Day) Date (Day of the Month) Date (Minute) Date (Custom)
03.04.2012 00:04 01.04.2012 03.04.2012 3 4 custom text 03.04.12
17.04.2012 19:39 01.04.2012 17.04.2012 17 39 custom text 17.04.12
09.05.2012 19:42 01.05.2012 09.05.2012 9 42 custom text 09.05.12
16.05.2012 12:13 01.05.2012 16.05.2012 16 13 custom text 16.05.12
28.05.2012 20:35 01.05.2012 28.05.2012 28 35 custom text 28.05.12

The system generates all subsequent columns based on the first column, each containing a specific part of the date/time information—such as minutes or the day of the month. For details on the custom date representation in the last column, see below.

Ports

Input

  • Input data source Input data source: Provide a data table.

Output

  • Output dataset Output dataset: This port displays the resulting data table.

Configuration wizard

The wizard window consists of two panes: Field and Time frames.

The Field pane lists the input dataset’s fields of Date/Time date/time type. Click the Time frames header to sort these fields by the number of selected transformations, either in ascending or descending order.

Configure the data transformation by selecting the checkboxes of the required type and format in the Time frames pane.

You can transform data into the following data types:

  • Date/Time date/time
  • Number numeric
  • String string

When transforming to Date/Time date/time data type, you can select the start and/or end of the time period for some formats.

Example
Date (Source Column) (Year + Month) Date (Year)
start end start end
03.04.2012 00:04 01.04.2012 30.04.2012 01.01.2012 31.12.2012
09.05.2012 19:39 01.05.2012 31.05.2012 01.01.2012 31.12.2012
09.01.2013 19:42 01.01.2013 31.01.2013 01.01.2013 31.12.2013
16.03.2013 12:13 01.03.2013 31.03.2013 01.01.2013 31.12.2013

Custom format

In addition to standard date formats, you can also set the format using the ISO 8601 international date standard.

Select the String data type string data type, then click the field to the right of the checkbox to define a custom date/time format. Alternatively, use the Choice List dropdown to choose how to format the date as a string.

Configuring each option generates a new column in the resulting dataset.


Articles in Section:

results matching ""

    No results matching ""