DAY_OF_YEAR Function
Returns an array of integers containing the day of the year for each date in a Date/Time variable.
Usage
result = DAY_OF_YEAR(dt_var)
Input Parameters
dt_var — A Date/Time variable.
Returned Value
resultAn array of integers representing the day of the year for each date in the input variable.
Keywords
None.
Discussion
The result falls in a range between 1 and 365 (or 366 if it is a leap year).
Example
; Create a Date/Time variable.
date = STR_TO_DT('07-01-2000', Date_Fmt=1)
daynumber = DAY_OF_YEAR(date)
PRINT, daynumber
; PV-WAVE prints: 183
See Also
For more information on Date/Time data, see the PV‑WAVE User’s Guide.