How to convert HEX data to Datetime

后端 未结 2 1527
抹茶落季
抹茶落季 2021-01-24 21:42

I have a hex string like this 529CD17C.This is corresponding to One date time 12/2/2013 06:29:16 PM .(ie in MM/dd/yyyy hh:mm:ss AM/PM).How can i do this in c# coding

2条回答
  •  猫巷女王i
    2021-01-24 22:30

    Here is someone with the same question http://social.msdn.microsoft.com/Forums/en-US/c9624a19-1ef6-4f60-b063-527beb36de1d/hex-string-to-datetime-conversion It looks like the function provided could work.

    They first convert the HEX value to an integer and then convert the integer to a date type.

提交回复
热议问题