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 OptionsDetails and Options

  • Date can be specified in the following forms:
  • {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 ()
  • Possible day types are: All (default); ; ; Monday through Sunday; ; and .
  • 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.

ExamplesExamplesopen allclose all

Basic Examples (4)Basic Examples (4)

Five days from the first of the year:

In[1]:=
Click for copyable input
Out[1]=

Five days before the first of the year:

In[1]:=
Click for copyable input
Out[1]=

Five business days from today:

In[1]:=
Click for copyable input
Out[1]=

Five Sundays away from the first of March 2012:

In[1]:=
Click for copyable input
Out[1]=
New in 9
New to Mathematica? Find your learning path »
Have a question? Ask support »