LibreOfficeDev 25.8 Help
mcyKX‖Returns the day of the week for the given date value. The day is returned as an integer between 1 (Sunday) and 7 (Saturday) if no type or type=1 is specified. For other types, see the table below.
SaqiJ‖WEEKDAY(Number [; Type])
2ghBV‖ Number, as a date value, is a decimal for which the weekday is to be returned.
6GhMU‖ Type is optional and determines the type of calculation.
| E7Ad6‖Type | CUDRi‖Weekday number returned | 
|---|---|
| JZdWn‖1 or omitted | HaFSu‖1 (Sunday) through 7 (Saturday). For compatibility with Microsoft Excel. | 
| 2 | wHMXY‖1 (Monday) through 7 (Sunday). | 
| 3 | Fhihd‖0 (Monday) through 6 (Sunday) | 
| 11 | ZKiEn‖1 (Monday) through 7 (Sunday). | 
| 12 | BGmPr‖1 (Tuesday) through 7 (Monday). | 
| 13 | QAN6k‖1 (Wednesday) through 7 (Tuesday). | 
| 14 | jrbXZ‖1 (Thursday) through 7 (Wednesday). | 
| 15 | 6RzFd‖1 (Friday) through 7 (Thursday). | 
| 16 | gMLHQ‖1 (Saturday) through 7 (Friday). | 
| 17 | ypPnV‖1 (Sunday) through 7 (Saturday). | 
ETGT2‖These values apply only to the standard date format that you select under .
A9eLB‖=WEEKDAY("2000-06-14") returns 4 (the Type parameter is missing, therefore the standard count is used. The standard count starts with Sunday as day number 1. June 14, 2000 was a Wednesday and therefore day number 4).
yaCAz‖=WEEKDAY("1996-07-24";2) returns 3 (the Type parameter is 2, therefore Monday is day number 1. July 24, 1996 was a Wednesday and therefore day number 3).
h9QAe‖=WEEKDAY("1996-07-24";1) returns 4 (the Type parameter is 1, therefore Sunday is day number 1. July 24, 1996 was a Wednesday and therefore day number 4).
QFoH9‖=WEEKDAY("2017-05-02";14) returns 6 (the Type parameter is 14, therefore Thursday is day number 1. May 2, 2017 was a Tuesday and therefore day number 6)
wVWSR‖=WEEKDAY(NOW()) returns the number of the current day.
NfoSb‖To obtain a function indicating whether a day in A1 is a business day, use the IF and WEEKDAY functions as follows: 
IF(WEEKDAY(A1;2)<6;"Business day";"Weekend")