Function File: daysact (d1)
Function File: daysact (d1, d2)

Calculates the number of days between two dates. If the second date is not given, calculate the number of days since 1-Jan-0000. The variables d1 and d2 can either be strings or an n-row string matrix. If both d1 and d2 are string matrices, then the number of rows must match. An example of the use of daysact is

daysact ("01-Jan-2007", ["10-Jan-2007"; "23-Feb-2007"; "23-Jul-2007"])
⇒      9
       53
      203

See also: datenum.

Package: financial