gives all dates in the range from date1 to date2.


gives the dates in the range from date1 to date2 that are increment apart.

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, 2000")
    timeabsolute 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.
  • DateRange[date1,date2,inc,gran] gives dates with the specified granularity gran. The default is Automatic, determined by the granularity of date1.
  • 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


open allclose all

Basic Examples  (4)

Give all the dates in a date range:

Increment dates by one week:

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

DateRange has constraints similar to Range:

Scope  (5)

The output is sensitive to the choice of step size:

Increment can be specified using the quantity framework:

DateRange interprets string inputs:

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

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

Options  (5)

CalendarType  (4)

Create a list of Jewish calendar dates:

Get a list of months in the Islamic calendar:

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

Print all dates for the current Islamic year:

HolidayCalendar  (1)

Different markets within a country may have different holiday schedules:

Wolfram Research (2012), DateRange, Wolfram Language function, (updated 2018).


Wolfram Research (2012), DateRange, Wolfram Language function, (updated 2018).


@misc{reference.wolfram_2020_daterange, author="Wolfram Research", title="{DateRange}", year="2018", howpublished="\url{}", note=[Accessed: 21-January-2021 ]}


@online{reference.wolfram_2020_daterange, organization={Wolfram Research}, title={DateRange}, year={2018}, url={}, note=[Accessed: 21-January-2021 ]}


Wolfram Language. 2012. "DateRange." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2018.


Wolfram Language. (2012). DateRange. Wolfram Language & System Documentation Center. Retrieved from