LibreOffice 24.8 Yardım
Bir tarihe karşılık gelen haftanın gününü verir. Tür belirtilmemişse veya tür=1 ise gün değeri 1'den (Pazar) 7'ye (Cumartesi) kadar bir tamsayı olarak döndürülür. Diğer türler için aşağıdaki tabloya bakın.
WEEKDAY(Number [; Type])
Sayı, tarih değeri olarak, haftanın gününün döndürüleceği bir ondalık sayıdır.
Tür isteğe bağlıdır ve hesaplamanın türünü belirler.
| Tür | Haftanın gün numarası döndürülür | 
|---|---|
| 1 veya atlanmış | 1 (Pazar)'den 7 (Cumartesi)'ye. Microsoft Excel uyumluluğu için. | 
| 2 | 1 (Pazartesi)'den 7 (Pazar)'a. | 
| 3 | 0 (Pazartesi)'den 6 (Pazar)'a | 
| 11 | 1 (Pazartesi)'den 7 (Pazar)'a. | 
| 12 | 1 (Salı)'dan 7 (Pazartesi)'ye. | 
| 13 | 1 (Çarşamba)'dan 7 (Salı)'ya. | 
| 14 | 1 (Perşembe)'den 7 (Çarşamba)'ya. | 
| 15 | 1 (Cuma)'dan 7 (Perşembe)'ye. | 
| 16 | 1 (Cumartesi)'den 7 (Cuma)'ya. | 
| 17 | 1 (Pazar)'dan 7 (Cumartesi)'ye. | 
Bu değerler ancak altından seçtiğiniz standart gün biçimine uygulanır.
=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).
=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).
=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).
=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)
=WEEKDAY(NOW()) returns the number of the current day.
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")