DayPlus

DayPlus[date,n]

gives the date n days away from date.

DayPlus[date,n,daytype]

gives the date that is n days of daytype away from date.

Details and Options

  • 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")
  • DayPlus returns a DateObject.
  • Possible day types are: All (default), "Weekday", "Weekend", Monday through Sunday, "EndOfMonth", "BeginningOfMonth", and "BusinessDay".
  • DayPlus 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
  • In the Jewish calendar, the weekdays are Sunday through Thursday.

Examples

open allclose all

Basic Examples  (4)

Five days from the first of the year:

Five days before the first of the year:

Five business days from today:

Five Sundays away from the first of March 2022:

Scope  (2)

250 Sundays away:

There are about 250 business days in a year:

Options  (3)

CalendarType  (1)

Compute the Islamic day five business days away, subject to the US holiday schedule:

HolidayCalendar  (2)

Compare the dates 250 business days away in different countries:

Different markets within a country may have different holiday schedules:

Properties & Relations  (1)

Business date difference can be computed by using DayCount:

Wolfram Research (2012), DayPlus, Wolfram Language function, https://reference.wolfram.com/language/ref/DayPlus.html (updated 2014).

Text

Wolfram Research (2012), DayPlus, Wolfram Language function, https://reference.wolfram.com/language/ref/DayPlus.html (updated 2014).

CMS

Wolfram Language. 2012. "DayPlus." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2014. https://reference.wolfram.com/language/ref/DayPlus.html.

APA

Wolfram Language. (2012). DayPlus. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/DayPlus.html

BibTeX

@misc{reference.wolfram_2024_dayplus, author="Wolfram Research", title="{DayPlus}", year="2014", howpublished="\url{https://reference.wolfram.com/language/ref/DayPlus.html}", note=[Accessed: 22-November-2024 ]}

BibLaTeX

@online{reference.wolfram_2024_dayplus, organization={Wolfram Research}, title={DayPlus}, year={2014}, url={https://reference.wolfram.com/language/ref/DayPlus.html}, note=[Accessed: 22-November-2024 ]}