Fields / Formula / function

DaysBetween

Subtracts dateB from dateA and returns the whole-day difference. The same as dateA - dateB.

Syntax

DaysBetween(dateA, dateB, zone?)

Returns

Number or null.

Example

DaysBetween(RenewalDate, Today())

Notes and limitations

A Date/Time counts as the date the person reading it sees. Returns null if either date is null; a past first date produces a negative result. With a time zone (optional, as in Today), a Date/Time counts as its date in that zone; a plain Date ignores the zone.