Indy 9
StrToMonth
Unit: IdGlobal
Returns the month number for a given short month name.
function StrToMonth(const AMonth: string): Byte;
Unit
IdGlobal
Parameters
const AMonth: string
The short month name to be converted.
Return Value
Byte - The month number or -1 when the month name is invalid.
Description
StrToMonth is a Byte function used to the month number for the short month name specified in AMonth. StrToMonth will return -1 if AMonth is not a valid short month name.

Created with Doc-O-Matic 2 donated to Project JEDI. Commercial license available from the Doc-O-Matic site.