DAYNAME() function :
This function in MySQL is used to return the weekday name for a specified date.
Syntax :
DAYNAME(date)Parameter : This method accepts a parameter which is illustrated below as follows.
- date - Specified date to extract the weekday name from
SELECT DAYNAME("2020-11-24");
Output :
TuesdayExample-2 : Getting the weekday name from a specified date "2020-11-22 07:12:23".
SELECT DAYNAME("2020-11-22 07:12:23");
Output :
SundayExample-3 : Getting the weekday name for the current system date.
SELECT DAYNAME(CURDATE());Output :
TuesdayApplication : This function is used to return the weekday name for a specified date.