Main Content
daysadd
Date away from starting date for any day-count basis
Description
returns
a date NewDate
= daysadd(___,Basis
)NewDate
number of days away from StartDate
,
using the optional argument Basis
for day-count.
If StartDate
is a string or date character vector,
NewDate
is returned as a serial date number. Use the
function datetime
to convert serial date
numbers to formatted datetime arrays.
If StartDate
is a datetime array, then NewDate
is
returned as a datetime array.
Examples
Input Arguments
Output Arguments
References
[1] Stigum, Marcia L. and Franklin Robinson. Money Market and Bond Calculations. Richard D. Irwin, 1996, ISBN 1-55623-476-7