Internet Direct (Indy)
Home
PreviousUpNext
ParseDateTimeStamp Function

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

Pascal
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.

Internet Direct (Indy) version 10.1.5
Copyright © 1993-2006, Chad Z. Hower (aka Kudzu) and the Indy Pit Crew. All rights reserved.
Website http://www.indyproject.org.
Post feedback to the Indy Documentation newsgroup.