Returns the name of the month with the given index in the current channel's localization culture.

Syntax

Smartsite SXML CopyCode image Copy Code
string locale.monthname(integer month)
string locale.monthname(integer month, boolean abbreviated)
string locale.monthname(integer month, boolean abbreviated, boolean genitive)
string locale.monthname(integer month, boolean abbreviated, boolean genitive, string culture)

Parameters

Name Data Type Description
month Integer The numeric designation of the month, from 1 through 12; 1 indicates January and 12 indicates December.
abbreviated Boolean

If set to true, returns an abbreviated name of the month.

If set to false, returns a full name of the month.

genitive Boolean If set to true, returns a genitive name of the month.
culture String The culture.

Return Value

Data Type Description
String A month name.

Expand image Example

SXML