Convert 4 byte integer to time (hh:mm)?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Need to convert a 4 byte interger "1704" to a time "17:04". How do I do it.
 
TimeValueFrom4DigitInteger=
TimeSerial([4DigitInteger] \ 100, [4DigitInteger] MOD 100, 0)

(assuming the positional value of the last 2 digits is less than 60)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top