DAY_NAME Function
Standard Library procedure that returns a string array or string constant containing the name of the day of the week for each day in a Date/Time variable.
Usage
Input Parameters
dt_var — A date/time variable.
Returned Value
result — A string array or string constant containing the name of the day of the week for each input Date/Time value.
Keywords
None.
Discussion
The names of the days of the week are string values taken from the system variable !Day_Names.
Example
date = STR_TO_DT('01-01-2000', Date_Fmt=1) day = DAY_NAME(date) PRINT, day ; PV-WAVE prints: Saturday
See Also
DAY_OF_WEEK, DAY_OF_YEAR, MONTH_NAME
For more information on Date/Time data, see the PV‑WAVE User Guide.