DAY() Function in MySQL Last Updated : 02 Dec, 2020 Summarize Comments Improve Suggest changes Share Like Article Like Report 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 the day from. Returns : It returns the day of the month for a specified date (a number from 1 to 31). Example-1 : Getting the day of the month from a specified date "2020-11-24". SELECT DAY("2020-11-24"); Output : 24 Example-2 : Getting the day of the month from a specified date "2020-11-22 07:12:23". SELECT DAY("2020-11-22 07:12:23"); Output : 22 Example-3 : Getting the day of the month for the current system date. SELECT DAY(CURDATE()); Output : 24 Application : This function is used to return the day of the month for a specified date (a number from 1 to 31). Comment More infoAdvertise with us Next Article DAY() Function in MySQL K Kanchan_Ray Follow Improve Article Tags : SQL DBMS-SQL mysql Similar Reads DAYNAME() Function in MySQL 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 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 DIV() Function in MySQL DIV() function : This function in MySQL is used to return a quotient (integer) value when integer division is done. For example, when 7 is divided by 3, then 2 will be returned. Syntax : SELECT x DIV y; Parameter : This method accepts two parameters as given below as follows. x - Specified dividend 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 Like