<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Date-Time Functions :: Delta BI Documentation (EN source)</title>
    <link>/developer/reference/fx/pql/granular/date-time/index.html</link>
    <description>Date-Time Functions These functions are used to apply date-time operations on the row or grain of the data&#xA;Family: PQL Library: Granular Function List AddDays&#xA;2023.00.000&#xA;AddHours&#xA;2023.00.000&#xA;AddMinutes&#xA;2023.00.000&#xA;AddMonths</description>
    <generator>Hugo</generator>
    <language>en</language>
    <atom:link href="/developer/reference/fx/pql/granular/date-time/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>AddDays</title>
      <link>/developer/reference/fx/pql/granular/date-time/adddays/index.html</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      <guid>/developer/reference/fx/pql/granular/date-time/adddays/index.html</guid>
      <description>AddDays (PQL) Returns a new date-time with the number of days added&#xA;Returned Output: Date-Time Library: PQL \ Granular \ Date-Time Version: 2023.00.000 Compatibility: Pyramid Query Language (PQL) data sources Syntax AddDays( &lt;Column DateTime&gt; , &lt;Integer&gt; ) * Click on the function’s arguments above for more details on the input values.</description>
    </item>
    <item>
      <title>AddHours</title>
      <link>/developer/reference/fx/pql/granular/date-time/addhours/index.html</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      <guid>/developer/reference/fx/pql/granular/date-time/addhours/index.html</guid>
      <description>AddHours (PQL) Returns a new date-time with the number of hours added&#xA;Returned Output: Date-Time Library: PQL \ Granular \ Date-Time Version: 2023.00.000 Compatibility: Pyramid Query Language (PQL) data sources Syntax AddHours( &lt;Column DateTime&gt; , &lt;Integer&gt; ) * Click on the function’s arguments above for more details on the input values.</description>
    </item>
    <item>
      <title>AddMinutes</title>
      <link>/developer/reference/fx/pql/granular/date-time/addminutes/index.html</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      <guid>/developer/reference/fx/pql/granular/date-time/addminutes/index.html</guid>
      <description>AddMinutes (PQL) Returns a new date-time with the number of minutes added&#xA;Returned Output: Date-Time Library: PQL \ Granular \ Date-Time Version: 2023.00.000 Compatibility: Pyramid Query Language (PQL) data sources Syntax AddMinutes( &lt;Column DateTime&gt; , &lt;Integer&gt; ) * Click on the function’s arguments above for more details on the input values.</description>
    </item>
    <item>
      <title>AddMonths</title>
      <link>/developer/reference/fx/pql/granular/date-time/addmonths/index.html</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      <guid>/developer/reference/fx/pql/granular/date-time/addmonths/index.html</guid>
      <description>AddMonths (PQL) Returns a new date-time with the number of months added&#xA;Returned Output: Date-Time Library: PQL \ Granular \ Date-Time Version: 2023.00.000 Compatibility: Pyramid Query Language (PQL) data sources Syntax AddMonths( &lt;Column DateTime&gt; , &lt;Integer&gt; ) * Click on the function’s arguments above for more details on the input values.</description>
    </item>
    <item>
      <title>AddQuarters</title>
      <link>/developer/reference/fx/pql/granular/date-time/addquarters/index.html</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      <guid>/developer/reference/fx/pql/granular/date-time/addquarters/index.html</guid>
      <description>AddQuarters (PQL) Returns a new date-time with the number of quarters added&#xA;Returned Output: Date-Time Library: PQL \ Granular \ Date-Time Version: 2023.00.000 Compatibility: Pyramid Query Language (PQL) data sources Syntax AddQuarters( &lt;Column DateTime&gt; , &lt;Integer&gt; ) * Click on the function’s arguments above for more details on the input values.</description>
    </item>
    <item>
      <title>AddWeeks</title>
      <link>/developer/reference/fx/pql/granular/date-time/addweeks/index.html</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      <guid>/developer/reference/fx/pql/granular/date-time/addweeks/index.html</guid>
      <description>AddWeeks (PQL) Returns a new date-time with the number of weeks added&#xA;Returned Output: Date-Time Library: PQL \ Granular \ Date-Time Version: 2023.00.000 Compatibility: Pyramid Query Language (PQL) data sources Syntax AddWeeks( &lt;Column DateTime&gt; , &lt;Integer&gt; ) * Click on the function’s arguments above for more details on the input values.</description>
    </item>
    <item>
      <title>AddYears</title>
      <link>/developer/reference/fx/pql/granular/date-time/addyears/index.html</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      <guid>/developer/reference/fx/pql/granular/date-time/addyears/index.html</guid>
      <description>AddYears (PQL) Returns a new date-time with the number of years added&#xA;Returned Output: Date-Time Library: PQL \ Granular \ Date-Time Version: 2023.00.000 Compatibility: Pyramid Query Language (PQL) data sources Syntax AddYears( &lt;Column DateTime&gt; , &lt;Integer&gt; ) * Click on the function’s arguments above for more details on the input values.</description>
    </item>
    <item>
      <title>Age</title>
      <link>/developer/reference/fx/pql/granular/date-time/age/index.html</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      <guid>/developer/reference/fx/pql/granular/date-time/age/index.html</guid>
      <description>Age (PQL) Returns the number of years between the date column and today&#xA;Returned Output: Integer Library: PQL \ Granular \ Date-Time Version: 2023.00.000 Compatibility: Pyramid Query Language (PQL) data sources Syntax Age( &lt;Column DateTime&gt; ) * Click on the function’s arguments above for more details on the input values.</description>
    </item>
    <item>
      <title>Date</title>
      <link>/developer/reference/fx/pql/granular/date-time/date/index.html</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      <guid>/developer/reference/fx/pql/granular/date-time/date/index.html</guid>
      <description>Date (PQL) Returns the date from a date-time&#xA;Returned Output: Text Library: PQL \ Granular \ Date-Time Version: 2023.00.000 Compatibility: Pyramid Query Language (PQL) data sources Syntax Date( &lt;Column DateTime&gt; ) * Click on the function’s arguments above for more details on the input values.</description>
    </item>
    <item>
      <title>DateDiff</title>
      <link>/developer/reference/fx/pql/granular/date-time/datediff/index.html</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      <guid>/developer/reference/fx/pql/granular/date-time/datediff/index.html</guid>
      <description>DateDiff (PQL) Returns the difference between the 2 specified date-time values expressed by the date-part.&#xA;Returned Output: Numeric Library: PQL \ Granular \ Date-Time Version: 2023.00.000 Compatibility: Pyramid Query Language (PQL) data sources Syntax DateDiff( &lt;Column DateTime&gt; , &lt;Column DateTime&gt; , &lt;Flag&gt; )</description>
    </item>
    <item>
      <title>DateFormat</title>
      <link>/developer/reference/fx/pql/granular/date-time/dateformat/index.html</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      <guid>/developer/reference/fx/pql/granular/date-time/dateformat/index.html</guid>
      <description>DateFormat (PQL) Formats date-time values into strings using the chosen format or ‘mask’.&#xA;Returned Output: Text Library: PQL \ Granular \ Date-Time Version: 2023.00.000 Compatibility: Pyramid Query Language (PQL) data sources Syntax DateFormat( &lt;Column DateTime&gt; , &lt;Text&gt; )</description>
    </item>
    <item>
      <title>DayNumber</title>
      <link>/developer/reference/fx/pql/granular/date-time/daynumber/index.html</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      <guid>/developer/reference/fx/pql/granular/date-time/daynumber/index.html</guid>
      <description>DayNumber (PQL) Returns a number between 1 and 31, inclusive, representing the day of the month.&#xA;Returned Output: Integer Library: PQL \ Granular \ Date-Time Version: 2023.00.000 Compatibility: Pyramid Query Language (PQL) data sources Syntax DayNumber( &lt;Column DateTime&gt; ) Syntax Alternatives Day( &lt;Column DateTime&gt; )</description>
    </item>
    <item>
      <title>DayOfWeekName</title>
      <link>/developer/reference/fx/pql/granular/date-time/dayofweekname/index.html</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      <guid>/developer/reference/fx/pql/granular/date-time/dayofweekname/index.html</guid>
      <description>DayOfWeekName (PQL) Returns the name of the day of week. Optional flag can be set to “LONG” or “SHORT”, where “LONG” will return “Monday” and “SHORT” will return “Mon”.&#xA;Returned Output: Text Library: PQL \ Granular \ Date-Time Version: 2023.13.000 Compatibility: Pyramid Query Language (PQL) data sources Syntax DayOfWeekName( &lt;Column DateTime&gt; , OPTIONAL &lt;Flag&gt; )</description>
    </item>
    <item>
      <title>DayOfWeekNumber</title>
      <link>/developer/reference/fx/pql/granular/date-time/dayofweeknumber/index.html</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      <guid>/developer/reference/fx/pql/granular/date-time/dayofweeknumber/index.html</guid>
      <description>DayOfWeekNumber (PQL) Returns the day of week as a number, between 1-7. By default, it ranges from 1= Sunday till 7=Saturday. Optionally using the “ISO” flag, will range from 1=Monday till 7=Sunday.&#xA;Returned Output: Numeric Library: PQL \ Granular \ Date-Time Version: 2023.13.000 Compatibility: Pyramid Query Language (PQL) data sources Syntax DayOfWeekNumber( &lt;Column DateTime&gt; , OPTIONAL &lt;Flag&gt; )</description>
    </item>
    <item>
      <title>DayOfYear</title>
      <link>/developer/reference/fx/pql/granular/date-time/dayofyear/index.html</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      <guid>/developer/reference/fx/pql/granular/date-time/dayofyear/index.html</guid>
      <description>DayOfYear (PQL) Returns an integer, in the range 1–366 that represents the day of the year, where 1 is January 1&#xA;Returned Output: Numeric Library: PQL \ Granular \ Date-Time Version: 2025.00.000 Compatibility: Pyramid Query Language (PQL) data sources Syntax DayOfYear( &lt;Column DateTime&gt; )</description>
    </item>
    <item>
      <title>Hour</title>
      <link>/developer/reference/fx/pql/granular/date-time/hour/index.html</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      <guid>/developer/reference/fx/pql/granular/date-time/hour/index.html</guid>
      <description>Hour (PQL) Returns the hour from a date-time&#xA;Returned Output: Text Library: PQL \ Granular \ Date-Time Version: 2023.00.000 Compatibility: Pyramid Query Language (PQL) data sources Syntax Hour( &lt;Column DateTime&gt; ) * Click on the function’s arguments above for more details on the input values.</description>
    </item>
    <item>
      <title>Minute</title>
      <link>/developer/reference/fx/pql/granular/date-time/minute/index.html</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      <guid>/developer/reference/fx/pql/granular/date-time/minute/index.html</guid>
      <description>Minute (PQL) Returns the minute from a date-time&#xA;Returned Output: Text Library: PQL \ Granular \ Date-Time Version: 2023.00.000 Compatibility: Pyramid Query Language (PQL) data sources Syntax Minute( &lt;Column DateTime&gt; ) * Click on the function’s arguments above for more details on the input values.</description>
    </item>
    <item>
      <title>Month</title>
      <link>/developer/reference/fx/pql/granular/date-time/month/index.html</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      <guid>/developer/reference/fx/pql/granular/date-time/month/index.html</guid>
      <description>Month (PQL) Returns the full month (with year) from a date-time&#xA;Returned Output: Text Library: PQL \ Granular \ Date-Time Version: 2023.00.000 Compatibility: Pyramid Query Language (PQL) data sources Syntax Month( &lt;Column DateTime&gt; ) * Click on the function’s arguments above for more details on the input values.</description>
    </item>
    <item>
      <title>MonthName</title>
      <link>/developer/reference/fx/pql/granular/date-time/monthname/index.html</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      <guid>/developer/reference/fx/pql/granular/date-time/monthname/index.html</guid>
      <description>MonthName (PQL) Returns the month name from a date-time&#xA;Returned Output: Text Library: PQL \ Granular \ Date-Time Version: 2023.00.000 Compatibility: Pyramid Query Language (PQL) data sources Syntax MonthName( &lt;Column DateTime&gt; ) * Click on the function’s arguments above for more details on the input values.</description>
    </item>
    <item>
      <title>MonthNumber</title>
      <link>/developer/reference/fx/pql/granular/date-time/monthnumber/index.html</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      <guid>/developer/reference/fx/pql/granular/date-time/monthnumber/index.html</guid>
      <description>MonthNumber (PQL) Returns the month number from a date-time&#xA;Returned Output: Integer Library: PQL \ Granular \ Date-Time Version: 2023.00.000 Compatibility: Pyramid Query Language (PQL) data sources Syntax MonthNumber( &lt;Column DateTime&gt; ) * Click on the function’s arguments above for more details on the input values.</description>
    </item>
    <item>
      <title>Now</title>
      <link>/developer/reference/fx/pql/granular/date-time/now/index.html</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      <guid>/developer/reference/fx/pql/granular/date-time/now/index.html</guid>
      <description>Now (PQL) Returns a current date and time as a DateTime value .&#xA;Returned Output: Date-Time Library: PQL \ Granular \ Date-Time Version: 2023.00.000 Compatibility: Pyramid Query Language (PQL) data sources Syntax Now() Comments This function has no arguments. It computes the result based on the actual current date and time. The function is mostly used in conjunction with other date-time logic to generate values, like elapsed time etc. For details on how to employ and use this function see the custom column overview. Different Function types This function is similar to the PQL semantic and common functions of the same name. However, it operates on a column directly at the grain. As a granular function, it is used in the base SQL query itself. Also see the Today function. Examples This example returns a column with the current date and time.</description>
    </item>
    <item>
      <title>Quarter</title>
      <link>/developer/reference/fx/pql/granular/date-time/quarter/index.html</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      <guid>/developer/reference/fx/pql/granular/date-time/quarter/index.html</guid>
      <description>Quarter (PQL) Returns the full quarter (with year) from a date-time&#xA;Returned Output: Text Library: PQL \ Granular \ Date-Time Version: 2023.00.000 Compatibility: Pyramid Query Language (PQL) data sources Syntax Quarter( &lt;Column DateTime&gt; ) * Click on the function’s arguments above for more details on the input values.</description>
    </item>
    <item>
      <title>QuarterNumber</title>
      <link>/developer/reference/fx/pql/granular/date-time/quarternumber/index.html</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      <guid>/developer/reference/fx/pql/granular/date-time/quarternumber/index.html</guid>
      <description>QuarterNumber (PQL) Returns the quarter number from a date-time&#xA;Returned Output: Integer Library: PQL \ Granular \ Date-Time Version: 2023.00.000 Compatibility: Pyramid Query Language (PQL) data sources Syntax QuarterNumber( &lt;Column DateTime&gt; ) * Click on the function’s arguments above for more details on the input values.</description>
    </item>
    <item>
      <title>Second</title>
      <link>/developer/reference/fx/pql/granular/date-time/second/index.html</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      <guid>/developer/reference/fx/pql/granular/date-time/second/index.html</guid>
      <description>Second (PQL) Returns a number between 0 and 59, inclusive, representing the second of the minute.&#xA;Returned Output: Numeric Library: PQL \ Granular \ Date-Time Version: 2023.00.000 Compatibility: Pyramid Query Language (PQL) data sources Syntax Second( &lt;Column DateTime&gt; )</description>
    </item>
    <item>
      <title>ToDate</title>
      <link>/developer/reference/fx/pql/granular/date-time/todate/index.html</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      <guid>/developer/reference/fx/pql/granular/date-time/todate/index.html</guid>
      <description>ToDate (PQL) Returns a date-time column based on a string representation of a date. Returned Output: Date-Time Library: PQL \ Granular \ Date-Time Version: 2023.13.000 Compatibility: Pyramid Query Language (PQL) data sources Syntax ToDate( &lt;Column String&gt; ) or&#xA;ToDate( &lt;Text&gt; )</description>
    </item>
    <item>
      <title>Today</title>
      <link>/developer/reference/fx/pql/granular/date-time/today/index.html</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      <guid>/developer/reference/fx/pql/granular/date-time/today/index.html</guid>
      <description>Today (PQL) Returns a current date as a Date value .&#xA;Returned Output: Date Library: PQL \ Granular \ Date-Time Version: 2023.00.000 Compatibility: Pyramid Query Language (PQL) data sources Syntax Today() Comments This function has no arguments. It computes the result based on the actual current date (ignoring time). The function is mostly used in conjunction with other date-time logic to generate values, like elapsed time etc. For details on how to employ and use this function see the custom column overview. Different Function types This function is similar to the PQL semantic and common functions of the same name. However, it operates on a column directly at the grain. As a granular function, it is used in the base SQL query itself. Also see the Now function. Examples This example returns a column with the current date.</description>
    </item>
    <item>
      <title>Week</title>
      <link>/developer/reference/fx/pql/granular/date-time/week/index.html</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      <guid>/developer/reference/fx/pql/granular/date-time/week/index.html</guid>
      <description>Week (PQL) Returns the full week (with year) from a date-time&#xA;Returned Output: Text Library: PQL \ Granular \ Date-Time Version: 2023.00.000 Compatibility: Pyramid Query Language (PQL) data sources Syntax Week( &lt;Column DateTime&gt; ) * Click on the function’s arguments above for more details on the input values.</description>
    </item>
    <item>
      <title>WeekNumber</title>
      <link>/developer/reference/fx/pql/granular/date-time/weeknumber/index.html</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      <guid>/developer/reference/fx/pql/granular/date-time/weeknumber/index.html</guid>
      <description>WeekNumber (PQL) Returns the week number from a date-time&#xA;Returned Output: Integer Library: PQL \ Granular \ Date-Time Version: 2023.00.000 Compatibility: Pyramid Query Language (PQL) data sources Syntax WeekNumber( &lt;Column DateTime&gt; ) * Click on the function’s arguments above for more details on the input values.</description>
    </item>
    <item>
      <title>Year</title>
      <link>/developer/reference/fx/pql/granular/date-time/year/index.html</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      <guid>/developer/reference/fx/pql/granular/date-time/year/index.html</guid>
      <description>Year (PQL) Returns the year from a datetime&#xA;Returned Output: Integer Library: PQL \ Granular \ Date-Time Version: 2023.00.000 Compatibility: Pyramid Query Language (PQL) data sources Syntax Year( &lt;Column DateTime&gt; ) * Click on the function’s arguments above for more details on the input values.</description>
    </item>
  </channel>
</rss>