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