| Financial Toolbox | Search  Help Desk |
| busdate | Examples See Also |
Next or previous business day.
Syntax
bd = busdate(d, direc, hol) bd = busdate(d, direc) bd = busdate(d)
Arguments
ddirec1 = next (default) or -1 = previous business day.holhol must be the same format: either serial date numbers or date strings. (Using date numbers improves performance.) The holidays function supplies the default vector.Description
bd = busdate(d, direc, hol)
returns the serial date number bd of the next or previous business day from the reference date.
Use the function datestr to convert serial date numbers to formatted date strings.
Example
bd = busdate('3-Jul-1997', 1, holidays)
bd =
729578
datestr(bd)
ans =
07-Jul-1997
See Also
holidays, isbusday