HTML tutorial
CSS3 tutorial
Bootstrap tutorial
JavaScript tutorial
JQuery tutorial
AngularJS tutorial
React tutorial
NodeJS tutorial
PHP tutorial
Python tutorial
Python3 tutorial
Django tutorial
Linux tutorial
Docker tutorial
Ruby tutorial
Java tutorial
C tutorial
C ++ tutorial
Perl tutorial
JSP tutorial
Lua tutorial
Scala tutorial
Go tutorial
ASP.NET tutorial
C # tutorial
Return the hour for a specified time
The Hour() function returns the hour part of a time/datetime.
This function returns an integer between 0 and 23.
Hour(time)
Parameter | Description |
---|---|
time | Required. A numeric or string expression that can represent a valid time/datetime |
Works in: | From Access 2000 |
---|
Return the hour for the current time:
SELECT
Hour(Now());
Return the hour for a specified datetime:
SELECT Hour(#24/10/2016 11:18:34 PM#);