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: