gives the current day of the week.


gives the day of the week for the given date.

Details and Options

  • The following options can be given:
  • CalendarType "Gregorian"calendar in which the date parameter has been specified


open allclose all

Basic Examples  (3)

The day of the week for a particular date:

The day of the week today:

Hours, minutes, and seconds do not affect the day of the week:

Options  (4)

CalendarType  (4)

Louis XIV was born on a Sunday:

The Greek Orthodox liturgy uses the Julian calendar. The Orthodox Christmas 2000 was on a Sunday:

By definition, Yom Kippur cannot fall on a Friday or Sunday:

The first of January of year 1 in the proleptic Gregorian calendar was a Monday:

It was a Saturday in the Julian calendar:

Applications  (2)

The 400-year cycle of the Gregorian calendar includes an integral number of weeks:

There are 20871 weeks in those 400 years because there are 97 leap days in the cycle:

A century never begins on a Sunday:

No matter how the beginning of a century is defined:

Properties & Relations  (2)

Conway's Doomsday rule observes that certain dates within a Gregorian calendar year will always fall on the same day of the week, including the last day of February, the 4th day of the 4th month, the 6th day of the 6th month, and others:

Conway calls this the doomsday of the year, which is Tuesday for 2017:

Thursday, October 4 in the Julian calendar was followed by Friday, October 15 in the Gregorian calendar:

Neat Examples  (1)

This computes the number of times each day of the week occurs as a 13th of the month over the complete 400-year cycle of the Western (Gregorian) calendar:

The 13th of the month falls more often on a Friday than on any other day of the week:

Wolfram Research (2012), DayName, Wolfram Language function, (updated 2014).


Wolfram Research (2012), DayName, Wolfram Language function, (updated 2014).


Wolfram Language. 2012. "DayName." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2014.


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


@misc{reference.wolfram_2024_dayname, author="Wolfram Research", title="{DayName}", year="2014", howpublished="\url{}", note=[Accessed: 17-June-2024 ]}


@online{reference.wolfram_2024_dayname, organization={Wolfram Research}, title={DayName}, year={2014}, url={}, note=[Accessed: 17-June-2024 ]}