- TIBCO BusinessEvents®
- Standard
- DateTime

# DateTime.getHour()

## Signature

`int getHour(DateTime date)`

## Domain

ACTION, CONDITION, QUERY, BUI

## Description

Gets the hour on the DateTime Object passed as input.

## Parameters

Name | Type | Description
--- | --- | ---
`date` | `DateTime` | A DateTime to get the hour of.

## Returns

Type | Description
--- | ---
`int` | The hour on the `date` argument. Hour in day ranges from 0-23.

## Cautions

none