DayOfYear (PQL)

Returns an integer, in the range 1–366 that represents the day of the year, where 1 is January 1

  • Returned Output: Numeric
  • Library: PQL \ Common \ Date-Time
  • Version: 2025.00.000
  • Compatibility:
    • Can be combined with and other PQL function throughout the application.
    • It CANNOT be used with MDX or VBA functions. But it can be used on MDX-based content in other parts of the application.

Syntax

DayOfYear( <Date-Time> )

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

Comments

Examples

This example returns 12 from a date of January 12th 2025

DayOfYear(CreateDate(2025,1,12))