DayName

DayName[]

gives the current day of the week.

DayName[date]

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

Examples

open allclose all

Basic Examples  (3)

The day of the week for a particular date:

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

The day of the week today:

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

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

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

Options  (3)

Applications  (2)

Properties & Relations  (2)

Neat Examples  (1)

See Also

DateValue  DayRange  DateDifference  Monday  Today

Introduced in 2012
(9.0)
| Updated in 2014
(10.0)