DateParseHours()

Parses a time string and returns the hour of a time string.

Token ID

AFTKN_DATE_PARSE_HOURS or 808

Syntax

WORD DateParseHours(ANSISTRING DateString)

Parameters

DateString As ANSISTRING

String in the form HH:MM[:SS][AM/PM]. For example, "10:30" returns 10; "23:59" returns 23; "11:59:55 AM" returns 11; "11:59:55 PM" returns 23.

Return Values

WORD