DAYNAME() returns the full name of the day of the week for a given date. This function is useful for date-based reporting, filtering, and display formatting where you need to show or work with the day names rather than numeric values.
DAYNAME(date)
DAYNAME() returns a character string containing the full day name, or an empty string for NULL dates
DAYNAME(DATE("12/25/2025")) = "Thursday"
DAYNAME(DATE(2025, 12, 25)) = "Thursday"
DAYNAME(DATE("2025-01-01")) = "Wednesday"
DAYNAME(DATE("2025-02-28")) = "Friday"
DAYNAME(DATE("2025-03-31")) = "Monday"
DAYNAME(CURDATE()) = "Wednesday" (if run on March 19, 2025)
DAYNAME(NULL) = ""