Internet Direct (Indy) Version 9.0.2 Beta
StrToDay
Returns the day number for a short day name.

function StrToDay(const ADay: string): Byte;
Parameters
const ADay: string
The 3-character day of week name.

Returns
Byte - The day of week, or -1 if the day name is not valid.

Description
StrToDay is a Byte function used to calculate the day of week for the short day name in ADay. StrToDay will return -1 when ADay is not a valid day name.