LibreOffice SymbolLibreOffice Symbol

请支持我们!

EOMONTH

返回与「起始日期」间隔数月的那个月的最后一天的日期。

语法

EOMONTH(起始日期; 月数)

起始日期」一个日期 (由此开始计算)。

月数」所求的月份应在开始日期之前的几个月 (负) 或之后的几个月 (正)。

示例

2001 年 9 月 14 日后 6 个月的那个月的最后一天是哪天?

=EOMONTH(DATE(2001;9;14);6)」返回序数 37346。格式化为日期,即 2002-03-31。

=EOMONTH("2001-09-14";6) works as well. If you specify the date directly, we recommend using the standard ISO 8601 format because this should be independent of your selected locale settings.

Technical information

批注图标

This function is part of the Open Document Format for Office Applications (OpenDocument) standard.