The first day of the week for a given locale.
DayOfWeek = SRP_Date("FirstDayOfWeek", Locale = "")
Returns
An integer between 1 and 7, 1 = Monday, 7 = Sunday.
Parameters
Parameter | Description |
---|---|
Locale | A locale for culture specific names. (OPTIONAL) |
Remarks
The "FirstDayOfWeek" service retrieves a culture's first day of the week. The result will be an integer between 1 and 7, with 1 being Monday and 7 being Sunday. Locale is the locale name used to target a specific culture to determine what that culture's first day of the week is.
Here is a sample of possible return values based on different locales.
en-US | es-MX | es-ES | fr-CA | fr-FR |
---|---|---|---|---|
7 | 7 | 1 | 7 | 1 |
Examples
// Get the first day of the week for the local culture DayOfWeek = SRP_Date("FirstDayOfWeek") // Get the first day of the week in Spain DayOfWeek = SRP_Date("DayOfWeekName", "es-ES")