Financial Toolbox
  Go to function:
    Search    Help Desk 
holidays    Examples   See Also

Holidays and non-trading days.

Syntax

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

which are the serial date numbers for

See Also

busdate, fbusdate, isbusday, lbusdate



[ Previous | Help Desk | Next ]