Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

convert time to a number

Status
Not open for further replies.

balllian

MIS
Jan 26, 2005
150
GB
How is it possible to convert a time field to a number. The field is hh:mm:ss ie 00:02:30. I need this to be represented as 2.50.

Any help would be greatly appreciated.


 
How about:

Hour(TheTime) + (Minute(TheTime)/60)
 




Or even
[tt]
[TheTime] * 24
[/tt]
since Date/Time UNITS are days.

Skip,
[sub]
[glasses]Just traded in my old subtlety...
for a NUANCE![tongue][/sub]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top