DAYNAME() Function in MySQL Last Updated : 27 Nov, 2020 Comments Improve Suggest changes Like Article Like Report 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 Returns : It returns the weekday name for a specified date. Example-1 : Getting the weekday name for a specified date. "2020-11-24". SELECT DAYNAME("2020-11-24"); Output : Tuesday Example-2 : Getting the weekday name from a specified date "2020-11-22 07:12:23". SELECT DAYNAME("2020-11-22 07:12:23"); Output : Sunday Example-3 : Getting the weekday name for the current system date. SELECT DAYNAME(CURDATE()); Output : Tuesday Application : This function is used to return the weekday name for a specified date. Comment More infoAdvertise with us Next Article DAYNAME() Function in MySQL K Kanchan_Ray Follow Improve Article Tags : SQL DBMS-SQL mysql Similar Reads DAY() Function in MySQL DAY() function : This function in MySQL is used to return the day of the month for a specified date (a number from 1 to 31). This function equals the DAYOFMONTH() function. Syntax : DAY(date) Parameter : This method accepts a parameter which is illustrated below : date : Specified date to extract th 1 min read FROM_DAYS() Function in MySQL FROM_DAYS() : This function is used to return the date from a specified numeric date value. Here specified date value is divided by 365 and accordingly years, months, and days are returned. This function is used only with dates within the Gregorian calendar. Features : This function is used to find 2 min read DAYOFYEAR() Function in MySQL DAYOFYEAR() function: This function in MySQL is used to return the day of the year for a specified date (a number from 1 to 366). Syntax : DAYOFYEAR(date) Parameter : This method accepts a parameter which is illustrated below: date: Specified date to return the day of the year from Returns : It retu 1 min read DAYOFWEEK() Function in MySQL DAYOFWEEK() function : This function in MySQL is used to return the weekday index for a specified date (a number from 1 to 7). Note : 1=Sunday, 2=Monday, 3=Tuesday, 4=Wednesday, 5=Thursday, 6=Friday, 7=Saturday. Syntax : DAYOFWEEK(date) Parameter : This method accepts a parameter which is illustrate 1 min read TO DAYS() FUNCTION in MySQL TO DAYS() : TO DAYS() function in MySQL takes the given date and returns a number of days since year 0 corresponding to the given date.TO DAYS() function can only be used with the dates within the Gregorian calendar. Syntax : TO DAYS(date) Parameters: The function can accept only one argument as sho 1 min read Like