C-Sharp | Java | Python | Swift | GO | WPF | Ruby | Scala | F# | JavaScript | SQL | PHP | Angular | HTML
MySQL DAY() FunctionThe day() is a MySQL date/time function. It is used to get the day from the given date. Syntax
 
select day('date_value');
Parameter:
 date_value: date for getting day. ReturnsThis function returns the day of the month (a number from 1 to 31) given a date value. Example 1
 
Select day('2018-09-25');
Output:  
Example 2
Select day('2018-09-10');
Output:  
Next TopicMySQL date/time
 
 |