weekdayNames

Typefunction
DictionaryLCS
LibraryLiveCode Script
Syntax
the [{ long | abbreviated | short }] [{ english | system }] weekdayNames
weekdayNames()
Summary

Returns a list of names of the days of the week used by the date function.

Introduced1.1
OSmac, windows, linux, ios, android
Platformsdesktop, server, mobile
Example
put the weekdayNames into field "Weekdays"
if it is not among the lines of the system weekdayNames then beep
Values
NameTypeDescription
return

The weekdayNames function returns a set of seven day names, one per line. The weekdayNames form returns the full name of each day, as used in the long date.

The long weekdayNames form returns the same result as the weekdayNames form.

The abbreviated weekdayNames form returns the first three letters of the name of each day, as used in the abbreviated date.

The short weekdayNames form returns the number of each day, as used in the short date.

RelatedProperty: useSystemDate
Function: dateFormat, date
Glossary: function, property, return
Control Structure: function
Description

Use the weekdayNames function to let the user choose from a list of weekday names, or to display a list of days in the language of the user's system preferences.

For each form of the weekdayNames, if the useSystemDate property is set to true, or if you specify the system weekdayNames, the list of names is provided in the language specified by the user's system preferences. If the useSystemDate is false or you specify the english weekdayNames, the list of names is provided in English.

Tagsmath