Difference between revisions of "Documentation/How Tos/Calc: ISLEAPYEAR function"
From Apache OpenOffice Wiki
< Documentation | How Tos
(→Issues:) |
(→See also:) |
||
Line 16: | Line 16: | ||
=== See also: === | === See also: === | ||
− | '''[[Documentation/How_Tos/Calc: DAYSINMONTH function|DAYSINMONTH]]''' | + | '''[[Documentation/How_Tos/Calc: DAYSINMONTH function|DAYSINMONTH]]''', |
+ | '''[[Documentation/How_Tos/Calc: DAYSINYEAR function|DAYSINYEAR]]''' | ||
'''[[Documentation/How_Tos/Calc: Information functions|Information functions]]''' | '''[[Documentation/How_Tos/Calc: Information functions|Information functions]]''' |
Revision as of 05:27, 17 September 2008
ISLEAPYEAR
Tests if a date is in a leap year.
This function is only available if the Analysis AddIn is installed.
Syntax:
ISLEAPYEAR(date)
- Returns 1 if date lies in a leap year, and 0 otherwise.
Example:
ISLEAPYEAR("2012-05-24")
- returns 1; 2012 is a leap year.
See also:
Functions listed alphabetically, Functions listed by category
Issues:
- This function is not available in Excel. Try =MONTH(DATE(YEAR(date);2;29))=2 if you need compatibility with Excel.