converting time

  • Thread starter Thread starter Floyd Forbes
  • Start date Start date
"Floyd Forbes" wrote
How do I convert 6:59 AM timein and 6:41 PM timeout to 11.70 decimal
time?

Use the DateDiff function to subtract the timein value from the timeout
value and get the answer in seconds. Then divide that result by 3600, the
number of seconds in an hour, and you'll have the answer you want. Be sure
you do the final calculations using Floating Point variables, so you will
get the decimal fractional part.

Larry Linson
Microsoft Access MVP
 
Thanks

Larry Linson said:
"Floyd Forbes" wrote

time?

Use the DateDiff function to subtract the timein value from the timeout
value and get the answer in seconds. Then divide that result by 3600, the
number of seconds in an hour, and you'll have the answer you want. Be
sure you do the final calculations using Floating Point variables, so you
will get the decimal fractional part.

Larry Linson
Microsoft Access MVP
 
Back
Top