Contents

# DATE

此函式會計算由年、月、日所指定的日期，並以儲存格格式顯示。包含 DATE 函式的儲存格預設格式為日期格式，但您可使用任何其他數字格式來格式化此儲存格。

This function is part of the Open Document Format for Office Applications (OpenDocument) standard Version 1.2. (ISO/IEC 26300:2-2015)

### 語法

DATE(Year; Month; Day)

Year 是介於 1583 和 9957 或介於 0 到 99 之間的整數。

In LibreOffice - Preferences Tools - Options - LibreOffice - General you can set from which year a two-digit number entry is recognized as 20xx.

Month 是表示月份的整數。

Day 是表示當月日期的整數。

若月份與日期的數值超出限制，則會延續到下一個數字。若輸入 =DATE(00;12;31)，結果會是 12/31/00；若輸入 =DATE(00;13;31)，結果會是 1/31/01。

### 範例

=DATE(00;1;31) yields the date 2000-01-31 written as 1/31/00 if the cell format setting is MM/DD/YY.

相關主題

DATE wiki page.

Date & Time Functions

DATE

[text/scalc/01/func_datedif.xhp#datedif not found].

DATEVALUE

DAY

DAYS

DAYS360

DAYSINMONTH

DAYSINYEAR

EASTERSUNDAY

EDATE

EOMONTH

HOUR

ISLEAPYEAR

[text/scalc/01/func_isoweeknum.xhp#isoweeknum not found].

MINUTE

MONTH

MONTHS

NETWORKDAYS

NETWORKDAYS.INTL

NOW

SECOND

TIME

TIMEVALUE

TODAY

WEEKDAY

WEEKNUM

WEEKNUM_ADD

[text/scalc/01/func_weeknum_ooo.xhp#weeknum_ooo not found].

WEEKS

WEEKSINYEAR

WORKDAY

WORKDAY.INTL

YEAR

YEARFRAC

YEARS