You are viewing the documentation for Blueriq 17. Documentation for other versions is available in our documentation directory.

HOUR


Returns the hour of a dateTime value. The hour is returned as an integer in the range 0 - 23.


Syntax

HOUR ( dateTime )


Inputs
  • dateTime - The dateTime value of which the hour must be returned.


Return type

  • integer


Examples

ExpressionResultType
HOUR ( DATETIME ( 2015 , 5 , 25 , 00 , 00 , 00 ) )0Integer
HOUR ( DATETIME ( 2015 , 5 , 25 , 23 , 00 , 00 ) )23Integer


Back to Top