Date (PQL)

Returns the date from a date-time

  • Returned Output: Text
  • Library: PQL \ Granular \ Date-Time
  • Version: 2023.00.000
  • Compatibility: Pyramid Query Language (PQL) data sources

Syntax

Date( <Column DateTime> )

* Click on the function's arguments above for more details on the input values.

Comments
  • The input column needs to be an attribute with date-time values in the model. (The data type needs to be 'date-time')
  • The resulting column is a text or string value - NOT a date.
  • For details on how to employ and use this function see the custom column overview.
Different Function types

Examples

This example returns the date only from the order date column - ignoring the time element.

Date([transactions].[Order Date])

In the example below, the 4th column represents the date string from the Order date (column 1).