User:Syranzi/Documentation/How Tos/Calc: WEEKDAY function

From Apache OpenOffice Wiki
Revision as of 09:50, 17 July 2018 by Sancho (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

WEEKDAY

WEEKDAY

Returns the day of the week for a given date.

指定された日付の曜日を返します。

Syntax:

構文:

WEEKDAY(date; type)

returns the day of the week that date falls on, as a number.
The number returned depends on type, as follows:

WEEKDAY(日付; 方式)

「日付」に該当する曜日を、数字として返します。
返される数字は、「方式」によって決まります。以下のとおりです。
day of the week type=1 type=2 type=3
Sunday 1 7 6
Monday 2 1 0
Tuesday 3 2 1
Wednesday 4 3 2
Thursday 5 4 3
Friday 6 5 4
Saturday 7 6 5
曜日 方式=1 方式=2 方式=3
日曜日 1 7 6
月曜日 2 1 0
火曜日 3 2 1
水曜日 4 3 2
木曜日 5 4 3
金曜日 6 5 4
土曜日 7 6 5
If type is omitted, it is assumed to be 1.
「方式」が省略されると、「1」とみなされます。

Example:

例:

WEEKDAY("2008-06-14"; 1)

returns 7. 14Jun08 falls on a Saturday.

WEEKDAY("2008-06-14"; 1)

「7」を返します。「08 年 6 月 14 日」は土曜日にあたります。



See Also

関連項目

Personal tools