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?

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