Finance

 check if given date is a business day

Parameters

 date - a string containing a date specification in a format recognized by Finance[ParseDate] or a Date data structure calendar - a name representing a supported calendar (e.g. Toronto, NewYork) or a calendar data structure created using the Calendar constructor

Description

 • The IsBusinessDay command returns true if the given date is a business day in the given calendar.
 • The parameter date must be a date specified in any of the formats recognized by the ParseDate command.
 • The parameter calendar must be either a name representing a supported calendar (e.g. Toronto, NewYork) or a calendar data structure created using the Calendar constructor.

Examples

 > $\mathrm{with}\left(\mathrm{Finance}\right):$
 > $\mathrm{IsHoliday}\left("January 3, 2006",\mathrm{Toronto}\right)$
 ${\mathrm{false}}$ (1)
 > $\mathrm{IsBusinessDay}\left("January 3, 2006",\mathrm{Toronto}\right)$
 ${\mathrm{true}}$ (2)

Compatibility

 • The Finance[IsBusinessDay] command was introduced in Maple 15.