I need to know how to take and convert a time to the decimal equivalent. Example what I have as 8:30 needs to be 8.50. Can someone please help as I do not know where to begin?
Is this an actual time data type, or a string containing the time?
I'll assume the latter as most databases don't store a TIME type:
If val(mid({table.field},instr({table.time},":"+1) > 0 then
val(left({table.field},instr({table.time},":"-1)+
60/val(mid({table.field},instr({table.time},":"+1)
else
val(left({table.field},instr({table.time},":"-1)
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.