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

Syntax

Smartsite SXML CopyCode image Copy Code
string locale.weekdayname(integer dayOfWeek)
string locale.weekdayname(integer dayOfWeek, boolean abbreviated)
string locale.weekdayname(integer dayOfWeek, boolean abbreviated, string culture)

Parameters

Name Data Type Description
dayOfWeek Integer The numeric designation of the day of the week, from 0 through 6; 0 indicates sunday and 6 indicates saturday.
abbreviated Boolean

If set to true, returns an abbreviated weekday name.

If set to false, returns a full weekday name.

culture String The culture.

Return Value

Data Type Description
String A weekday name.

Expand image Examples

SXML