bugl
bugl
HomeLearnPatternsSearch
HomeLearnPatternsSearch

Loading lesson path

Learn/SQL/SQL References
SQL•SQL References

MS Access Hour() Function

Concept visual

MS Access Hour() Function

Pointer walk
two pointers
leftright102132436485116
left=0
right=6
1
3

Start at both ends

Example

Return the hour for a specified time:

Select

Hour(#14:48:23#);

Definition and Usage

Formula

The Hour() function returns the hour part of a time/datetime.

This function returns an integer between 0 and 23.

Syntax

Hour(

time )

Parameter Values

Parameter

Description time

Formula

Required. A numeric or string expression that can represent a valid time/datetime

Technical Details

Works in:

From Access 2000

More Examples

Example

Return the hour for the current time:

Select

Hour(Now());

Example

Return the hour for a specified datetime: SELECT Hour(#24/10/2016 11:18:34 PM#);

Previous

❮ MS Access Functions

Next

Previous

MS Access Format() Function

Next

MS Access Minute() Function