DateRange
✖
DateRange
Details and Options

- Dates can be specified in the following forms:
-
DateObject[…] date object {y,m,d,h,m,s} precise time {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, 2022") time absolute time specification - {y,m,d} is taken to be equivalent to {y,m,d,0,0,0} etc.
- Possible increments are denominated in the following calendar steps and day types: "Year", "Quarter", "Month", "Week", "Day", "Hour", "Minute", "Second", "Weekday", "Weekend", Monday through Sunday, "EndOfMonth", "BeginningOfMonth", and "BusinessDay".
- Mixed-radix increments are permitted.
- An increment may be specified using the Quantity framework.
- In DateRange[date1,date2] where date2 is a granular DateObject, range results will include all dates through the end of date2.
- DateRange takes the following option:
-
CalendarType "Gregorian" calendar in which the date parameters have been specified HolidayCalendar {"UnitedStates","Default"} holiday schedule and subspecification for the business day and holiday computations
Examples
open allclose allBasic Examples (4)Summary of the most common use cases
Give all the dates in a date range:

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


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

Increment dates by one year, one month, and one day:

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

DateRange has constraints similar to Range:

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


Scope (5)Survey of the scope of standard use cases
The output is sensitive to the choice of step size:

https://wolfram.com/xid/0cg4y2aai-qy2dnj


https://wolfram.com/xid/0cg4y2aai-h6234k

Increment can be specified using the quantity framework:

https://wolfram.com/xid/0cg4y2aai-q3qh3s

DateRange interprets string inputs:

https://wolfram.com/xid/0cg4y2aai-j75dyb

The increment "Week" is equivalent to {1,"Week"}:

https://wolfram.com/xid/0cg4y2aai-iicie

The increment must be net-negative if the endpoints are not in chronological order:

https://wolfram.com/xid/0cg4y2aai-mgw3h

Options (4)Common values & functionality for each option
CalendarType (3)
Create a list of Jewish calendar dates:

https://wolfram.com/xid/0cg4y2aai-rtxhz5

Create a list of consecutive weekly dates in the Jewish calendar:

https://wolfram.com/xid/0cg4y2aai-06ne0

Print all dates for the current Islamic year:

https://wolfram.com/xid/0cg4y2aai-bph2c1


https://wolfram.com/xid/0cg4y2aai-cipqpg

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