This is two steps:
- Parsing the String into a TDateTime
- Converting the TDateTime in UTC timezone to your local timezone
For Task 1, there is already a built-in routine if the String is a timestamp in ISO8601 format:
ISO8601ToDate(..). This method can also automatically take care of converting to your local timezone or return UTC timezone.
But your example is not. A valid ISO8601 timestamp would look like
"2011-02-05T21:25:55Z"
If you're out of luck regarding ISO8601, I'd use
regular expressions.