DAYNAME

Returns the name of the given day of the week.

Syntax

DAYNAME(day-number, {shortName})

Arguments

day-number A value betwen 0 and 6. Sunday is day 0
short-name If TRUE the short name is returned ("Wed" instead of "Wednesday").   By default, this option is FALSE.

Example

DAYNAME(3,TRUE) returns "Wed".