Internet Direct (Indy) Version 9.0.1 Beta
GMTToLocalDateTime
Converts a GMT time string to the local time.

function GMTToLocalDateTime(S: string): TDateTime;
Parameters
S: string
GMT time string.

Returns
TDateTime - Local date time as a Delphi data type.

Description
GMTToLocalDateTime is a TDateTime function that converts an Internet date/time string expressed in GMT or UTC format to a native Delphi TDateTime data type.

The string S contains the GMT representation of the date/time, in the following format:

  Sun 15 Oct 2000 12:42:15 -0500