I am trying to discern what the formula is to convert a hex # to a DateTime.
In a file I am trying to parse, the Hex Value is 992947609 and I know that it is equivalent to 05/07/2007 07:01 AM.
I have figured out that the first four digits 9929 converts to 5/7/07, but I can not figure out how the remaining digits 47609 converts to 07:01 AM. This time portion is my main question.
In Excel, I can put in a cell =Hex2Dec("9929") and it gives 39209 in number format. And then if I format the cell to Date it becomes 5/7/07.
So now I just need to know how to convert the time. This is being used on a translator program I am writing in VBA behind an Access 2003 form.
Start Free Trial