returns True if the date matches the daytype specification 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")
  • Possible day types are: All (default), "Weekday", "Weekend", Monday through Sunday, "EndOfMonth", "BeginningOfMonth", "BusinessDay", and "Holiday".
  • DayMatchQ 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.


open allclose all

Basic Examples  (5)

Find out if today is a weekend:

Or a business day:

Find out if today is a non-weekend holiday:

Find out if July 4 is a holiday in Brazil:

Or in the US:

Scope  (2)

Input the date in string form:

What fraction of the time non-weekend holidays occur on Mondays:

Options  (3)

CalendarType  (1)

A day type will vary depending on the calendar associated with the date:

HolidayCalendar  (2)

The holiday calendar determines which days qualify as "Holiday":

Different markets within a country may have different holiday schedules:

Applications  (1)

Find the countries that have Easter Monday off:

Properties & Relations  (1)

DayRange with a day type specification other than All is equivalent to a Select statement:

Possible Issues  (2)

A date may only be a holiday if it is not a weekend:

A change in the calendar system may turn a weekend into a holiday, and vice versa:

Introduced in 2012
Updated in 2014