DayMatchQ
✖
DayMatchQ
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.
Examples
open allclose allBasic Examples (5)Summary of the most common use cases
Find out if today is a weekend day:

https://wolfram.com/xid/0pu0js2v8z-iqieu8

Find out if today is a business day:

https://wolfram.com/xid/0pu0js2v8z-g5i5i1

Find out if today is a non-weekend holiday:

https://wolfram.com/xid/0pu0js2v8z-t8vbz

Find out if July 4 is a holiday in Brazil:

https://wolfram.com/xid/0pu0js2v8z-k8nwp1


https://wolfram.com/xid/0pu0js2v8z-edgpq

Scope (2)Survey of the scope of standard use cases
Options (3)Common values & functionality for each option
CalendarType (1)
HolidayCalendar (2)
The holiday calendar determines which days qualify as "Holiday":

https://wolfram.com/xid/0pu0js2v8z-fncnek


https://wolfram.com/xid/0pu0js2v8z-d36nzd

Different markets within a country may have different holiday schedules:

https://wolfram.com/xid/0pu0js2v8z-ezamfy


https://wolfram.com/xid/0pu0js2v8z-e49knk


https://wolfram.com/xid/0pu0js2v8z-c3c3c3

Applications (1)Sample problems that can be solved with this function
Properties & Relations (1)Properties of the function, and connections to other functions
Possible Issues (2)Common pitfalls and unexpected behavior
A date may only be a holiday if it is not a weekend:

https://wolfram.com/xid/0pu0js2v8z-njepj2


https://wolfram.com/xid/0pu0js2v8z-ba5e7x

A Sunday is part of the weekend in the Gregorian calendar and therefore cannot be a holiday:

https://wolfram.com/xid/0pu0js2v8z-x5sgpr


https://wolfram.com/xid/0pu0js2v8z-gd1d2i

However, a Sunday is not part of the weekend in the Jewish calendar and therefore can be a holiday:

https://wolfram.com/xid/0pu0js2v8z-ee4pkc


https://wolfram.com/xid/0pu0js2v8z-bhkwwm

Wolfram Research (2012), DayMatchQ, Wolfram Language function, https://reference.wolfram.com/language/ref/DayMatchQ.html (updated 2014).
Text
Wolfram Research (2012), DayMatchQ, Wolfram Language function, https://reference.wolfram.com/language/ref/DayMatchQ.html (updated 2014).
Wolfram Research (2012), DayMatchQ, Wolfram Language function, https://reference.wolfram.com/language/ref/DayMatchQ.html (updated 2014).
CMS
Wolfram Language. 2012. "DayMatchQ." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2014. https://reference.wolfram.com/language/ref/DayMatchQ.html.
Wolfram Language. 2012. "DayMatchQ." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2014. https://reference.wolfram.com/language/ref/DayMatchQ.html.
APA
Wolfram Language. (2012). DayMatchQ. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/DayMatchQ.html
Wolfram Language. (2012). DayMatchQ. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/DayMatchQ.html
BibTeX
@misc{reference.wolfram_2025_daymatchq, author="Wolfram Research", title="{DayMatchQ}", year="2014", howpublished="\url{https://reference.wolfram.com/language/ref/DayMatchQ.html}", note=[Accessed: 24-April-2025
]}
BibLaTeX
@online{reference.wolfram_2025_daymatchq, organization={Wolfram Research}, title={DayMatchQ}, year={2014}, url={https://reference.wolfram.com/language/ref/DayMatchQ.html}, note=[Accessed: 24-April-2025
]}