Internet Direct (Indy) Version 9.0.2 Beta
TIdDateTimeStamp.SetFromISO8601
Sets the date and time from an ISO 8601 time value.

procedure SetFromISO8601(AString: String);
Parameters
AString: String
Date and time in ISO 8601 format.

Description
SetFromISO8601 is a procedure that the date and time components in TIdDateTimeStamp using the ISO 8601 date time value in AString. AString may contain an ISO date value that is expressed as a Calendar, Ordinal, or Week date value. The following ISO 8601 date formats are allowed:

AString may also contain an ISO time value expressed in HH:MM:SS format. The time format may also contain an optional prefix "T" indicating a time value.

For example, the following values all represent ISO 8601 date time values for July 4, 2001 at 1:00 PM: