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. Syntaxselect 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 1Select day('2018-09-25'); Output: Example 2Select day('2018-09-10'); Output:
Next TopicMySQL date/time
|