HOUR(DT)

Top  Previous  Next

 

Description

This function returns the hours (0 - 23, where 0 represents midnight) component of the datetime value DT.

 

Parameters

 

DT

A datetime value.

 

Examples

 

HOUR(.25) = 6

 

HOUR(0) = 0

 

HOUR(.99) = 23

 

Sponsored

Try Predictive Systems Lab

Interactive Demo →

Need Help?
Contact support