78
MySQL Hour() Function
The from_days() is a MySQL date/time function. It is used to get the hour from the given datetime.
Syntax
Parameter:
Datetime: datetime value for getting hour.
Returns:
This function returns the hour portion of a date value.
Example 1
Output:
Example 2
Output:
Next TopicMySQL date/time