check if given date is a business day - Maple Help

Online Help

All Products    Maple    MapleSim


Home : Support : Online Help : Mathematics : Finance : Date Arithmetic : Finance/IsBusinessDay

Finance[IsBusinessDay] - check if given date is a business day

Calling Sequence

IsBusinessDay(date, calendar)

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

withFinance:

IsHolidayJanuary 3, 2006,Toronto

false

(1)

IsBusinessDayJanuary 3, 2006,Toronto

true

(2)

See Also

Finance[AddHoliday], Finance[AdjustDate], Finance[Calendar], Finance[Calendars], Finance[IsEndOfMonth], Finance[IsHoliday], Finance[JoinBusinessDays], Finance[JoinHolidays], Finance[RemoveHoliday]


Download Help Document

Was this information helpful?



Please add your Comment (Optional)
E-mail Address (Optional)
What is ? This question helps us to combat spam