Converts a Byte array containing ASCII encoded text, containing a date/time value formatted in ISO8601 style into a DateTime instance.
As discussed in the corresponding conversion method DateTimeAsIso8601ByteSeq the date time is formatted in text as YYYYMMDDTHHDDMMSS, with a final letter Z if the date and time are in UTC.
DateTime has three defined ‘kinds’ (DateTimeKind): Unspecified, Utc, and Local. Depending on whether the input is marked as UTC we mark the DateTime returned as Utc, and Local respectively. This of course applies only to framework version 2 and later.
Note, we allow the string to have a final null-termination byte.
ObexHeaderConverter Class | Brecham.Obex Namespace | DateTimeAsIso8601ByteSeq