Days between dates based on 360-day year
returns
the number of days between NumDays
= days360(StartDate
,EndDate
)StartDate
and EndDate
based
on a 360-day year (that is, all months contain 30 days). If EndDate
is
earlier than StartDate
, NumDays
is
negative.
Either input argument can contain multiple values, but if so,
the other must contain the same number of values or a single value
that applies to all. For example, if StartDate
is
an n-row character array of date character vectors,
then EndDate
must be an N
-by-1
vector
of integers or a single integer. NumDays
is then
an N
-by-1
vector of date numbers.
[1] Addendum to Securities Industry Association, Standard Securities Calculation Methods: Fixed Income Securities Formulas for Analytic Measures. Vol. 2, Spring 1995.