Difference between revisions of "Documentation/How Tos/Calc: DAYS function"
From Apache OpenOffice Wiki
< Documentation | How Tos
m (→Example:: ISO date) |
(→See also:) |
||
Line 19: | Line 19: | ||
=== See also: === | === See also: === | ||
'''[[Documentation/How_Tos/Calc: DAYS360 function|DAYS360]]''', | '''[[Documentation/How_Tos/Calc: DAYS360 function|DAYS360]]''', | ||
− | '''[[Documentation/How_Tos/Calc: NETWORKDAYS function|NETWORKDAYS]]''' | + | '''[[Documentation/How_Tos/Calc: NETWORKDAYS function|NETWORKDAYS]]''', |
+ | '''[[Documentation/How_Tos/Calc: WEEKS function|WEEKS]]''', | ||
+ | '''[[Documentation/How_Tos/Calc: MONTHS function|MONTHS]]''', | ||
+ | '''[[Documentation/How_Tos/Calc: YEARS function|YEARS]]''' | ||
'''[[Documentation/How_Tos/Calc: Date & Time functions|Date & Time functions]]''' | '''[[Documentation/How_Tos/Calc: Date & Time functions|Date & Time functions]]''' |
Revision as of 19:21, 17 February 2008
DAYS
Returns the number of days between two dates
Syntax:
DAYS(enddate; startdate)
- startdate and enddate may be dates as numbers or text (which is converted to number form).
- DAYS returns enddate - startdate. The result may be negative.
Example:
DAYS("2008-03-03"; "2008-03-01")
- returns 2, the number of days between 1March08 and 3March08.
DAYS(A1; A2)
- where cell A1 contains the date 2008-06-09 and A2 contains 2008-06-02 returns 7.
See also:
DAYS360, NETWORKDAYS, WEEKS, MONTHS, YEARS
Issues:
- Note that DAYS does not count the first day of the period, but NETWORKDAYS does.