Topic Path: Symbol Reference > Functions > GMTToLocalDateTime Function
GMTToLocalDateTime Function

Converts a GMT time string to the local time.

function GMTToLocalDateTime(
    S: string
): TIdDateTime;
GMT time string. 

TDateTime - Local date time as a Delphi data type.

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

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


  Sun 15 Oct 2000 12:42:15 -0500
Copyright 1993-2006, Chad Z. Hower (aka Kudzu) and the Indy Pit Crew. All rights reserved.
Post feedback to the Indy Docs Newsgroup.