OrdinalDay / Temporal Layer

Extract day of year (ordinal day) from date/datetime values, similar to datetime.timetuple().tm_yday in Python or DAYOFYEAR() in SQL. Returns integers from 1 to 366.

Example calculations:

DateOrdinalQuarterNote
2024-01-011Q1New Year's Day
2024-02-2960Q1Leap Year Feb 29th
2024-07-04186Q3US Independence Day
2024-12-31366Q4Year end (leap year)
2023-12-31365Q4Year end (normal year)

Common applications:

  • Day-of-year analysis
  • Seasonal tracking
  • Agricultural planning
  • Climate studies
  • Project timeline tracking
  • Annual progress monitoring

Note: Accounts for leap years automatically. February 29th affects all subsequent ordinal days in leap years.

Table
0
0
Table

Select

column

Date/datetime column to extract ordinal day from. System automatically handles:

  • Regular years (1-365)
  • Leap years (1-366)
  • Different month lengths Counts days from January 1st.

Name for the new column. If not provided, the system generates a unique name. If AsColumn matches an existing column, the existing column is replaced. The name should follow valid column naming conventions.