C-Sharp | Java | Python | Swift | GO | WPF | Ruby | Scala | F# | JavaScript | SQL | PHP | Angular | HTML
MySQL Date/Time month() FunctionThe month() is a MySQL date/time function. It is used to get the value of month from given datetime or time. Syntaxselect month(date_value); Parameter:Date_value: datetime or time value for getting hour. Returns:This function returns the month portion of a date value. Example 1select month('2018-9-28 10:20:25.000002'); Output: Example 2select month('1995-2-11'); Output:
Next TopicMySQL datetime
|