hi there i have a hex code
E1956123823600
=
2013 10 02 17 30 00
how do i convert that so it displays the time and date i put in there
trying to write a script to convert the hex
thanks in advance
Printable View
hi there i have a hex code
E1956123823600
=
2013 10 02 17 30 00
how do i convert that so it displays the time and date i put in there
trying to write a script to convert the hex
thanks in advance
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;
}