DayRange
✖
DayRange
Details and Options

- Dates 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") - DayRange returns a list of DateObject elements.
- Possible day types are: All (default), "Weekday", "Weekend", Monday through Sunday, "EndOfMonth", "BeginningOfMonth", "BusinessDay", and "Holiday".
- DayRange takes the following options:
-
CalendarType "Gregorian" calendar in which the dates have been specified HolidayCalendar {"UnitedStates","Default"} holiday schedule and subspecification for the business day and holiday computations "IncludeEndPoints" {True,True} whether date1 and date2 are to be included in the range - In the Jewish calendar, the weekdays are Sunday through Thursday.
Examples
open allclose allBasic Examples (4)Summary of the most common use cases
Print all the dates in a date range:

https://wolfram.com/xid/0enzn7s7e-fuqw5p

Print all dates that fall on a given day of the week:

https://wolfram.com/xid/0enzn7s7e-5g1i3

Print all business days in the date range:

https://wolfram.com/xid/0enzn7s7e-ffgpzo

Print all holidays in the current year, subject to the default holiday schedule:

https://wolfram.com/xid/0enzn7s7e-tgf40

Scope (1)Survey of the scope of standard use cases
Options (4)Common values & functionality for each option
CalendarType (1)
HolidayCalendar (2)

https://wolfram.com/xid/0enzn7s7e-qzthj

Different markets within a country may have different holiday schedules:

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


https://wolfram.com/xid/0enzn7s7e-eilqej


https://wolfram.com/xid/0enzn7s7e-g0vi4g

Applications (1)Sample problems that can be solved with this function
Properties & Relations (3)Properties of the function, and connections to other functions
DayCount is equivalent to the length of the list output by DayRange for the same set of inputs:

https://wolfram.com/xid/0enzn7s7e-dgoesm

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

https://wolfram.com/xid/0enzn7s7e-qawc4

Weekends, non-weekend holidays, and business days form three non-overlapping sets:

https://wolfram.com/xid/0enzn7s7e-ra1fri

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