Difference between revisions of "Documentation/How Tos/Calc: EOMONTH function"
From Apache OpenOffice Wiki
< Documentation | How Tos
(Initial content) |
m |
||
(11 intermediate revisions by 5 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 == | ||
Returns the date of the last day of a month. | Returns the date of the last day of a month. | ||
− | |||
+ | This function is only available if the '''Analysis AddIn''' is installed. | ||
=== Syntax: === | === Syntax: === | ||
Line 11: | Line 16: | ||
: <tt>'''addmonths'''</tt> may be positive (in the future), zero or negative (in the past). | : <tt>'''addmonths'''</tt> may be positive (in the future), zero or negative (in the past). | ||
− | |||
=== Example: === | === Example: === | ||
− | <tt>'''EOMONTH("2008 | + | <tt>'''EOMONTH("2008-02-14"; 0)'''</tt> |
: returns <tt>'''39507'''</tt>, which may be formatted as <tt>'''29Feb08'''</tt>. 2008 is a leap year. | : returns <tt>'''39507'''</tt>, which may be formatted as <tt>'''29Feb08'''</tt>. 2008 is a leap year. | ||
Line 20: | 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>. | ||
+ | {{SeeAlso|EN| | ||
+ | * [[Documentation/How_Tos/Calc: EDATE function|EDATE]] | ||
+ | * [[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 & Time functions]] | |
− | + | * [[Documentation/How_Tos/Calc: Functions listed alphabetically|Functions listed alphabetically]] | |
+ | * [[Documentation/How_Tos/Calc: Functions listed by category|Functions listed by category]]}} | ||
+ | [[Category: Documentation/Reference/Calc/Date and Time functions]] |