Hour()

Top  Previous  Next

Hour() - Determine the Hour from a Date/Time

Description

The Hour() function is used to determine the hour from a date/time variable or formatted string.

Hour(date)

Returns number between 0 and 23 representing the hour of the day.

Example

SMEvent.Raise "Trace", Hour(now) 'displays the current hour