Financial Toolbox    
holidays

Holidays and nontrading days

Syntax

Arguments

StartDate
Start date vector. Enter as serial date numbers or date strings.
EndDate
End date vector. Enter as serial date numbers or date strings.

Description

Holidays = holidays(StartDate, EndDate) returns a vector of serial date numbers corresponding to the holidays and nontrading days between StartDate and EndDate, inclusive.

Holidays = holidays returns a vector of serial date numbers corresponding to all holidays and nontrading days.

As shipped, this function contains all holidays and special nontrading 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 nontrading days. By definition, holidays and nontrading days are those that occur on weekdays.

Examples

which are the serial date numbers for

See Also

busdate, fbusdate, isbusday, lbusdate


  highlow hour