Home » MySQL Hour() Function

MySQL Hour() Function

by Online Tutorials Library

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:

MySQL Hour() Function

Example 2

Output:

MySQL Hour() Function

Next TopicMySQL date/time

You may also like