Advertisement

07.03.2008 at 12:46PM PDT, ID: 23537997
[x]
Attachment Details

How to convert Hex # to DateTime format using VB 6 or VBA

Asked by KentDBerry in Microsoft Access Database, Microsoft Excel Spreadsheet Software, Algorithms

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
Attachments:
 
Hex To Decimal Analysis
Hex To Decimal Analysis
 
[+][-]07.03.2008 at 01:00PM PDT, ID: 21928553

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Microsoft Access Database, Microsoft Excel Spreadsheet Software, Algorithms
Sign Up Now!
Solution Provided By: zorvek
Participating Experts: 2
Solution Grade: A
 
 
[+][-]07.03.2008 at 01:00PM PDT, ID: 21928555

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.03.2008 at 01:03PM PDT, ID: 21928578

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.03.2008 at 01:09PM PDT, ID: 21928617

Assisted solutions are selected by the member who asked the question as a comment that contributed to their question's solution.

Start your 7-day free trial to view this Assisted Solution or ask the Experts your question.

 
[+][-]07.03.2008 at 01:50PM PDT, ID: 21928937

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07.03.2008 at 02:00PM PDT, ID: 21929020

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.03.2008 at 02:01PM PDT, ID: 21929027

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.03.2008 at 02:04PM PDT, ID: 21929044

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_EXPERT_20070906