| Financial Toolbox | Search  Help Desk |
| holidays | Examples See Also |
Holidays and non-trading days.
Syntax
h = holidays(d1, d2) h = holidays
Description
h = holidays(d1, d2)
returns a vector h of serial date numbers corresponding to the holidays and non-trading days between dates d1 and d2, inclusive. Enter d1 and d2 as serial date numbers or date strings.
h = holidays returns a vector h of serial date numbers corresponding to all holidays and non-trading days.
As shipped, this function contains all holidays and special non-trading days for the New York Stock Exchange between 1950 and 2030, inclusive (681 dates). You can edit the holidays.m file to contain your own holidays and non-trading days. By definition, holidays and non-trading days are those that occur on weekdays.
Example
h = holidays('jan 1 1997', 'jun 23 1997') returns
h =
729391
729438
729477
729536
which are the serial date numbers for
01-Jan-1997 New Year's Day 17-Feb-1997 Washington's Birthday 28-Mar-1997 Good Friday 26-May-1997 Memorial Day
See Also
busdate, fbusdate, isbusday, lbusdate