It depends how the data is stored. If the data represents a little-endian 64-bit integer, then you can convert it like this:
Code:public DateTime HexToUTCDate(string hex) { //Convert Hex To UTCDateTime long decValue = long.Parse(hex, System.Globalization.NumberStyles.HexNumber); DateTime dt = new DateTime(decValue); return dt; }




Reply With Quote