Date.yearday
Date.yearday
Function
Reads the day of the year that the current Date is.
Syntax
date_value.yearday()
Parameters
No parameters.
Return value
| Type | Description |
|---|---|
| Int | Returns a date number from 1 to 366. |
Code Example
result = date('2026-01-01 00:00:00').yearday() // Output: 1
Notes
- Read date in local time zone.