Skip to main content
Converts a date to the number day of the year, from 1 (Jan 1) to 365 (Dec 31). Accounts for leap years. Category: date Syntax:
Returns: IntColumn Context Filtering: ✓ Yes

Parameters

Allowed Column Types: DATETIME, DATE

Validation

  • Minimum parameters: 1
  • Maximum parameters: 2

Examples

Converts Jan 1, 2023 to the number day of the year. Result: 1
Converts Dec 31, 2023 to the number day of the year. Result: 365
Converts Dec 31, 2024 (leap year) to the number day of the year. Result: 366
Converts Jan 3, 2023 02:00:00Z to the number day of the year in New York. Result: 2
Last modified on March 13, 2026