Assuming the DateTime2 field string looks like it does in MS SQL/ISO 8601 (see datetime2 (Transact-SQL)): "2007-05-02T19:58:47.1234567", you can pull out the needed parts of the string and then use CDate
or CDateTime
to convert them to dates or datetimes.
If IsDate(left({Results.DT2Field}, 10))
Then
CDate(left({Results.DT2Field}, 10));
or for DateTime
If IsDateTime(left({Results.DT2Field}, 10) + " " + mid({Results.DT2Field},12,8))
Then
CDateTime(left({Results.DT2Field}, 10) + " " + mid({Results.DT2Field},12,8));
The results of the above are your converted values.