BusinessDayQ

BusinessDayQ[date]

returns True if the date is a business day and returns False otherwise.

Details and Options

  • A date can be specified in the following forms:
  • DateObject[]date object
    {y,m,d}year, month, day
    {y,m}the first day of the specified month
    {y}the first day of the first month of the year y
    "string"date as a string ("Jan. 1, 2000")
  • BusinessDayQ takes the following options:
  • CalendarType"Gregorian"calendar in which the date has been specified
    HolidayCalendar{"UnitedStates","Default"}holiday schedule and subspecification for the business day and holiday computations
  • In the Jewish calendar, the weekdays are Sunday through Thursday.

Examples

open allclose all

Basic Examples  (3)

Determine if today is a business day:

Determine if July 4 is a business day in Brazil:

And in the US:

Options  (4)

CalendarType  (2)

Check whether a date is a business day on different calendars:

Business days are determined by the calendar type associated with the date. For example, Friday and Saturday are considered weekend dates on the Jewish calendar:

HolidayCalendar  (2)

Different markets within a country may have different holiday schedules:

Applications  (1)

Find the countries that have Easter Monday off:

Wolfram Research (2012), BusinessDayQ, Wolfram Language function, https://reference.wolfram.com/language/ref/BusinessDayQ.html (updated 2014).

Text

Wolfram Research (2012), BusinessDayQ, Wolfram Language function, https://reference.wolfram.com/language/ref/BusinessDayQ.html (updated 2014).

BibTeX

@misc{reference.wolfram_2021_businessdayq, author="Wolfram Research", title="{BusinessDayQ}", year="2014", howpublished="\url{https://reference.wolfram.com/language/ref/BusinessDayQ.html}", note=[Accessed: 16-October-2021 ]}

BibLaTeX

@online{reference.wolfram_2021_businessdayq, organization={Wolfram Research}, title={BusinessDayQ}, year={2014}, url={https://reference.wolfram.com/language/ref/BusinessDayQ.html}, note=[Accessed: 16-October-2021 ]}

CMS

Wolfram Language. 2012. "BusinessDayQ." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2014. https://reference.wolfram.com/language/ref/BusinessDayQ.html.

APA

Wolfram Language. (2012). BusinessDayQ. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/BusinessDayQ.html