DAY() Function in MySQL Last Updated : 23 Jul, 2025 Comments Improve Suggest changes 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). Create Quiz Comment K Kanchan_Ray Follow 0 Improve K Kanchan_Ray Follow 0 Improve Article Tags : SQL DBMS-SQL mysql Explore BasicsWhat is SQL?6 min readSQL Data Types3 min readSQL Operators4 min readSQL Commands | DDL, DQL, DML, DCL and TCL Commands4 min readSQL Database Operations3 min readSQL CREATE TABLE3 min readQueries & OperationsSQL SELECT Query3 min readSQL INSERT INTO Statement4 min readSQL UPDATE Statement3 min readSQL DELETE Statement3 min readSQL - WHERE Clause2 min readAliases in SQL3 min readSQL Joins & FunctionsSQL Joins (Inner, Left, Right and Full Join)4 min readSQL CROSS JOIN2 min readSQL | Date Functions4 min readSQL | String functions6 min readData Constraints & Aggregate FunctionsSQL NOT NULL Constraint2 min readSQL PRIMARY KEY Constraint5 min readSQL Count() Function7 min readSQL SUM() Function5 min readSQL MAX() Function4 min readAVG() Function in SQL4 min readAdvanced SQL TopicsSQL Subquery5 min readWindow Functions in SQL6 min readSQL Stored Procedures7 min readSQL Triggers5 min readSQL Performance Tuning6 min readSQL TRANSACTIONS6 min readDatabase Design & SecurityIntroduction of ER Model10 min readIntroduction to Database Normalization6 min readSQL Injection11 min readSQL Data Encryption5 min readSQL Backup4 min readWhat is Object-Relational Mapping (ORM) in DBMS?7 min read Like