Difference between revisions of "User:Syranzi/Documentation/How Tos/Calc: YEAR function"
From Apache OpenOffice Wiki
(→例:) |
|||
Line 29: | Line 29: | ||
: セル A1 が日付 <tt>'''「83 年 11 月 23 日」'''</tt>を日付・時刻のシリアル値として含む場合、<tt>'''「1983」'''</tt> を返します。 | : セル A1 が日付 <tt>'''「83 年 11 月 23 日」'''</tt>を日付・時刻のシリアル値として含む場合、<tt>'''「1983」'''</tt> を返します。 | ||
− | {{ | + | {{SeeAlso|EN|関連項目 |
* [[Documentation/How_Tos/Calc: MONTH function|MONTH]] | * [[Documentation/How_Tos/Calc: MONTH function|MONTH]] | ||
* [[Documentation/How_Tos/Calc: DAY function|DAY]] | * [[Documentation/How_Tos/Calc: DAY function|DAY]] |
Latest revision as of 09:51, 17 July 2018
Contents
YEAR
YEAR
Returns the year of a given date.
指定された日付の年を返します。
Syntax:
構文:
YEAR(date)
- returns the year of date as a number.
- date may be text or a date-time serial number.
YEAR(日付)
- 「日付」の年を数字として返します。
- 「日付」の値は文字、または日付・時刻のシリアル値になります。
Example:
例:
YEAR("2008-06-04")
- returns 2008.
YEAR(A1)
- where cell A1 contains the date 23Nov83 as a date-time serial number, returns 1983.
YEAR("2008-06-04")
- 2008 年にあたる「2008」 を返します。
YEAR(A1)
- セル A1 が日付 「83 年 11 月 23 日」を日付・時刻のシリアル値として含む場合、「1983」 を返します。
See Also
関連項目