• Home
  • WEEKDAY Function

WEEKDAY Function

The WEEKDAY function is one of the date and time functions. It is used to determine which day of the week the specified date is.

Syntax

WEEKDAY(serial_number, [return_type])

The WEEKDAY function has the following arguments:

ArgumentDescription
serial_numberA number representing the date of the day you are trying to find, entered using the DATE function or other date and time function.
return_typeA numeric value used to determine the type of the value to be returned. The possible values are listed in the table below.

The return_type argument can be one of the following:

Numeric valueExplanation
1 or omittedReturns a number from 1 (Sunday) to 7 (Saturday)
2Returns a number from 1 (Monday) to 7 (Sunday).
3Returns a number from 0 (Monday) to 6 (Sunday).
Notes

How to apply the WEEKDAY function.

Examples

The figure below displays the result returned by the WEEKDAY function.

WEEKDAY Function

Host ONLYOFFICE Docs on your own server or use it in the cloud

Article with the tag:
Browse all tags