LibreOffice 25.2 帮助
Calculates the difference between two date values. Returns the number of days between the two days. May return a fraction of a day when the arguments include time parts.
DAYS(Date2; Date1)
「Date1」是开始日期,「Date2」是结束日期。如果「Date2」早于「Date1」,则结果会是负数。
=DAYS(TODAY();"2010-01-01")) returns the number of days from January 1, 2010 until today.
「=DAYS("1990-10-10";"1980-10-10")」返回 3652 天。
=DAYS(NOW(); TODAY()) returns a fraction of the current day.