MONTH_NAME Function

Standard Library function that returns a string or string array containing the names of the months contained in a date/time variable.

Usage

    result = MONTH_NAME(dt_var)

Input Parameters

dt_var—A date/time variable.

Returned Value

result—A string array containing the name(s) of the months.

Keywords

None.

Discussion

The names of the months are defined as string values in the system variable !Month_List.

Example

; Create a date time variable that contains January 1, 2016.
date1 = STR_TO_DT(['1-1-2016'], Date_Fmt=1)
PRINT, date1
; PV-WAVE prints:
; {    2016   1   1   0   0      0.00000       96168.000   0}
m = MONTH_NAME(date1)
PRINT, m
; PV-WAVE prints: January

See Also

!Day_Names, !Month_Names, DAY_NAME, DAY_OF_WEEK

For more information, see PV‑WAVE User Guide.