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

From Apache OpenOffice Wiki
Jump to: navigation, search
m (Bot: Adding Category: Documentation)
m
 
(4 intermediate revisions by 4 users not shown)
Line 1: Line 1:
__NOTOC__
+
{{DISPLAYTITLE: EOMONTH function}}
 +
{{Documentation/CalcFunc DateTimeTOC
 +
|ShowPrevNext=block
 +
|PrevPage=Documentation/How_Tos/Calc:_TIMEVALUE_function
 +
|NextPage=Documentation/How_Tos/Calc:_EDATE_function
 +
}}__NOTOC__
  
 
== EOMONTH ==
 
== EOMONTH ==
Line 19: Line 24:
 
: where cell A1 contains the date <tt>'''16Dec07'''</tt>, again returns <tt>'''39507'''</tt>, which may be formatted as <tt>'''29Feb08'''</tt>.
 
: where cell A1 contains the date <tt>'''16Dec07'''</tt>, again returns <tt>'''39507'''</tt>, which may be formatted as <tt>'''29Feb08'''</tt>.
  
{{Documentation/SeeAlso|
+
{{SeeAlso|EN|
 
* [[Documentation/How_Tos/Calc: EDATE function|EDATE]]
 
* [[Documentation/How_Tos/Calc: EDATE function|EDATE]]
 
* [[Documentation/How_Tos/Calc: WORKDAY function|WORKDAY]]
 
* [[Documentation/How_Tos/Calc: WORKDAY function|WORKDAY]]
Line 29: Line 34:
 
* [[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]]
+
[[Category: Documentation/Reference/Calc/Date and Time functions]]

Latest revision as of 13:54, 30 January 2024



EOMONTH

Returns the date of the last day of a month.

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

Syntax:

EOMONTH(startdate; addmonths)

addmonths is a number of months to be added to the startdate (given as text or a date-time serial number), to give a new date. For this new date, EOMONTH returns the date of the last day of the month, as a date-time serial number.
addmonths may be positive (in the future), zero or negative (in the past).

Example:

EOMONTH("2008-02-14"; 0)

returns 39507, which may be formatted as 29Feb08. 2008 is a leap year.

EOMONTH(A1; 2)

where cell A1 contains the date 16Dec07, again returns 39507, which may be formatted as 29Feb08.



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