portableSql

Hour Portable SQL Function

Syntax

Hour as N (DateTime as T)

Arguments

DateTimeTime

A field or value.

Returns

resultNumeric

Returns the hour from a date or time value.

Description

Extract the hour from a date or time value.

Discussion

The Hour function extacts the hour from a date or time value.

Hour() function executed on the Northwind Access database
SELECT FIRST 1 Now() AS Now, Hour(Now()) AS Later FROM Orders
=10/10/2019 12:45:57 00 pm|12