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:
- Calendar - YYYY-MM-DD.
- Ordinal - YYYY-NNN; where NNN is the day of the year.
- Week - YYYY-WNN-D where W is a literal character and NN is the week number for the year and D is the day of week.
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:
- 2001-07-04 13:00:00
- 2001-07-04T13:00:00
- 2001-185 13:00:00
- 2001-185T13:00:00
- 2001-W24-4T13:00:00
- 2001-W24-4 13:00:00