Page History
...
The "DayOfWeekName" service retrieves the cultural specific name for a given day of the week. The DayOfWeek parameter must be an integer between 1 and 7, with 1 being Monday and 7 being Sunday. The value return returned depends on two factors: NameLength and Locale. NameLength can be on of three options: "Full" returns the full name, "Abbreviated" returns the commonly used abbreviation, and "Shortest" returns the shortest possible name without being ambiguous. Locale is the locale name used to target a specific language.
...
Code Block | ||
---|---|---|
| ||
// Get the full name for Tuesday in the local culture
Name = SRP_Date("DayOfWeekName", 2)
// Get the abbreviated name for Tuesday in the local culture
Name = SRP_Date("DayOfWeekName", 2, "Abbreviated")
// Get the abbreviated name for Tuesday in Spain
Name = SRP_Date("DayOfWeekName", 2, "Abbreviated", "es-ES")
// Get the shortest name for Tuesday in France
Name = SRP_Date("DayOfWeekName", 2, "Shortest", "fr-FR") |
...