EOMONTH

傳回開始日期數個月後某月份的最後一天之日期。

評註圖示

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


Syntax

EOMONTH(StartDate; Months)

StartDate 是指日期 (計算的起點)。

Months 是指開始日期之前 (負值) 或之後 (正值) 的月數。

Example

2001 年 9 月 14 日後第 6 個月的最後一天是哪天?

=EOMONTH(DATE(2001;9;14);6) 會傳回序號 37346。格式化為日期,即為 2002-03-31。

=EOMONTH("2001-09-14";6) 也有效。若該日期指定為字串,則其必須為 ISO 格式。

Date & Time Functions

DATE

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

DATEVALUE

DAY

DAYS

DAYS360

EASTERSUNDAY

EDATE

EOMONTH

HOUR

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

MINUTE

MONTH

NETWORKDAYS

NETWORKDAYS.INTL

NOW

SECOND

TIME

TIMEVALUE

TODAY

WEEKDAY

WEEKNUM

WEEKNUM_ADD

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

WORKDAY

WORKDAY.INTL

YEAR

YEARFRAC

Please support us!