Topic Path: Symbol Reference > Functions > ParseDateTimeStamp Function
ContentsIndexHome
PreviousUpNext
ParseDateTimeStamp Function

Parses a native date/time value from its string representation.

File
function ParseDateTimeStamp(
    const DateString: string
): TIdDateTime;
Parameters 
Description 
DateString 
String representation of the date/time value. 

TIdDateTime - native date/time parsed from the string.

ParseDateTimeStamp is a procedure used to parse a native date/time value from the string specified in DateString. DateString is expected in one of the following formats: 

 

1995-10-31T22:27:10Z 
1997-11-15 

 

ParseDateTimeStamp examines the value in DateString to determine if time values are present and should be included in the return value. 

ParseDateTimeStamp encodes the year, month, day, and optional time components into the native date/time in the return value.

Copyright 1993-2006, Chad Z. Hower (aka Kudzu) and the Indy Pit Crew. All rights reserved.
Post feedback to the Indy Docs Newsgroup.