This document is provided on an "AS IS" basis without warranties of any kind. Smartsite iXperion class libraries may change in future releases.
Gets the hour component of the given DateTime.

Namespace: Smartsite.Runtime.Modules
Assembly:  Smartsite.Runtime.Modules (in Smartsite.Runtime.Modules.dll)

Syntax

C#Copy imageCopy Code
[(IsDeterministic = true)]
public static <int> GetHours(
	 dt
)
Visual Basic (Declaration)Copy imageCopy Code
<(IsDeterministic := True)> _
Public Shared Function GetHours ( _
	dt As  _
) As (Of Integer)

Parameters

dt
DateTime
A DateTime.

Return Value

The hour component of the given DateTime.

See Also

Advanced