Gets the hour component of the current date.

Syntax

Smartsite SXML CopyCode image Copy Code
integer datetime.gethours()
integer datetime.gethours(datetime dt)

Parameters

Name Data Type Description
dt DateTime A DateTime.

Return Value

Data Type Description
Integer The hour component of the current date.

Expand image Example

SXML