Warning: This Help page is relevant to LibreOffice up to version 6.0.
For updated Help pages, visit https://help.libreoffice.org.

EDATE

From LibreOffice Help
Jump to: navigation, search

EDATE

The result is a date which is a number of months away from the start date. Only months are considered; days are not used for calculation.

语法

EDATE(StartDate; Months)

StartDate 一个日期。

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

示例

What date is one month prior to 2001-03-31?

=EDATE("2001-03-31";-1) returns the serial number 36950. Formatted as a date, this is 2001-02-28.