Financial Toolbox | ![]() ![]() |
True for dates that are business days
Syntax
Arguments
Date |
Date(s) being checked. Enter as a serial date number or date string. Date can contain multiple dates, but they must all be in the same format. |
Holiday |
(Optional) Vector of holidays and nontrading-day dates. All dates in Holiday 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
Busday = isbusday(Date, Holiday)
returns logical true (1
) if Date
is a business day and logical false (0
) otherwise.
Examples
Busday = isbusday('16 jun 2001') Busday = 0 Date = ['15 feb 2001'; '16 feb 2001'; '17 feb 2001']; Busday = isbusday(Date) Busday = 1 1 0
See Also
busdate
, fbusdate
, holidays
, lbusdate
![]() | irr | lbusdate | ![]() |