Documentation/How Tos/Calc: EDATE function

From Apache OpenOffice Wiki
< Documentation‎ | How Tos
Revision as of 20:10, 30 December 2007 by Drking (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search


EDATE

Returns a date a number of months away.

This function is only available if the Analysis AddIn is installed.

Syntax:

EDATE(startdate; months)

months is a number of months that are added to the startdate. The day of the month remains unchanged, unless it is more than the number of days in the new month (when it becomes the last day of that month).
months may be negative.

Example:

EDATE("2008/10/15"; 2)

returns 15Dec08.

EDATE("2008/05/31"; -1)

returns 30Apr08. There are only 30 days in April.

See also:

DATE

Date & Time functions

Date & Time overview

Issues:

EDATE returns a date-time serial number, which must be manually formatted to display as a date. This complies with the ODFF standard.

Personal tools