Difference between revisions of "Documentation/How Tos/Calc: EDATE function"

From Apache OpenOffice Wiki
Jump to: navigation, search
m (Robot: Automated text replacement %s)
m
 
(7 intermediate revisions by 4 users not shown)
Line 1: Line 1:
__NOTOC__
+
{{DISPLAYTITLE: EDATE function}}
 +
{{Documentation/CalcFunc DateTimeTOC
 +
|ShowPrevNext=block
 +
|PrevPage=Documentation/How_Tos/Calc:_EOMONTH_function
 +
|NextPage=Documentation/How_Tos/Calc:_WORKDAY_function
 +
}}__NOTOC__
  
 
== EDATE ==
 
== EDATE ==
Line 19: Line 24:
 
: returns 30Apr08. There are only 30 days in April.
 
: returns 30Apr08. There are only 30 days in April.
  
{{Documentation/SeeAlso|
+
=== Issues: ===
 +
<tt>'''EDATE'''</tt> returns a date-time serial number, which must be manually formatted to display as a date. This complies with the ODFF standard.
 +
 
 +
{{SeeAlso|EN|
 
* [[Documentation/How_Tos/Calc: DATE function|DATE]]
 
* [[Documentation/How_Tos/Calc: DATE function|DATE]]
* [[Documentation/How_Tos/Calc: WORKDAY function|WORKDAY]]'''
+
* [[Documentation/How_Tos/Calc: WORKDAY function|WORKDAY]]
  
* [[Documentation/How_Tos/Calc: Date & Time functions#Date and Time overview|Date & Time overview]]'''
+
* [[Documentation/How_Tos/Calc: Date & Time functions#Date and Time overview|Date & Time overview]]
  
* [[Documentation/How_Tos/Calc: Date & Time functions|Date & Time functions]]'''
+
* [[Documentation/How_Tos/Calc: Date & Time functions|Date & Time functions]]
  
 
* [[Documentation/How_Tos/Calc: Functions listed alphabetically|Functions listed alphabetically]]
 
* [[Documentation/How_Tos/Calc: Functions listed alphabetically|Functions listed alphabetically]]
 
* [[Documentation/How_Tos/Calc: Functions listed by category|Functions listed by category]]}}
 
* [[Documentation/How_Tos/Calc: Functions listed by category|Functions listed by category]]}}
 
+
[[Category: Documentation/Reference/Calc/Date and Time functions]]
=== Issues: ===
+
<tt>'''EDATE'''</tt> returns a date-time serial number, which must be manually formatted to display as a date. This complies with the ODFF standard.
+

Latest revision as of 13:55, 30 January 2024



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.

Issues:

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



See Also
Retrieved from "https://wiki.openoffice.org/w/index.php?title=Documentation/How_Tos/Calc:_EDATE_function&oldid=259698"
Views
Personal tools
Navigation
Tools