Early Access: The content on this website is provided for informational purposes only in connection with pre-General Availability Qlik Products.
All content is subject to change and is provided without warranty.
Skip to main content Skip to complementary content

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.

Information noteThe properties listed in this section are the default properties for most of the functions of this processor. Additional properties may need to be defined depending on the function you have selected.
Configuration
Property Configuration
Function name
  • Convert to timestamp: Changes the type of date or time data to timestamp and sets a timestamp pattern.

  • Convert to date: Changes the type of timestamp or time data to date and sets a date pattern.

  • Convert to time: Changes the type of date or timestamp data to time and set a time pattern.

  • Create timestamp from parts: Concatenate timestamp parts from different fields into a new one.

  • Create date from parts: Concatenate date parts from different fields into a new one.

  • Create time from parts: Concatenate time parts from different fields into a new one.

  • Format date: Changes the date format to use in a date field.

  • Calculate date difference: For a given time part unit, calculates the time between the dates in your field and the date of your choice.

  • Add duration: Adds a specific amount of time to a date.

  • Compare dates: Compares this field to another field or a constant

  • Extract date parts: Creates fields with year, month, quarter, day, hour, minute, second, etc.

  • Truncate date: Removes part of a date.

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. 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 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

Did this page help you?

If you find any issues with this page or its content – a typo, a missing step, or a technical error – let us know how we can improve!